snacks.nvim/lua
Tu Nguyen f0e47fd5dc
fix(win): take border into account for window position (#64)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->
The window position is not correctly centered when position is set to
`float` and border isn't `none`. I found [a similar
issue](https://github.com/folke/lazy.nvim/issues/812) in
[lazy.nvim](https://github.com/folke/lazy.nvim) along with [your
fix](451f217e9b)
there, so I have applied the same fix here. Thank you for your work!

## Related Issue(s)
https://github.com/folke/lazy.nvim/issues/812

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

### Before
<img width="2240" alt="image"
src="https://github.com/user-attachments/assets/6e5eeb7b-7993-4ab5-a40e-c77021a5ccb0">

### After
<img width="2240" alt="image"
src="https://github.com/user-attachments/assets/66ad76ab-8ca2-446f-afce-b18599313319">

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-11-12 19:57:01 +01:00
..
snacks fix(win): take border into account for window position (#64) 2024-11-12 19:57:01 +01:00