diff options
| author | glepnir <glephunter@gmail.com> | 2025-10-21 06:26:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 15:26:23 -0700 |
| commit | c80bb5b63e0a470b4f458f639b9429db6a49f758 (patch) | |
| tree | bfe3e546b6327f9463e5e917b18dbf957f35db5c /runtime/lua/vim/_extui/shared.lua | |
| parent | c90135d6e57437def9177047bb12d7715b700a28 (diff) | |
| download | rneovim-c80bb5b63e0a470b4f458f639b9429db6a49f758.tar.gz rneovim-c80bb5b63e0a470b4f458f639b9429db6a49f758.tar.bz2 rneovim-c80bb5b63e0a470b4f458f639b9429db6a49f758.zip | |
fix(pumborder): wrong layout with pumborder=none #36208
Problem:
Border width calculations were scattered with repeated
`*p_pumborder != NUL ? 2 : 0` patterns. The "none" value was not
consistently checked, causing borders to appear when pumborder="none".
When "shadow" the info floating window have an extra cell of spacing.
Solution:
Add `pum_border_width()` helper that returns 0 when pumborder is unset
or "none" (opt_winborder_values[7]), returns 1 when pumborder is shadow,
otherwise return 2.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
0 files changed, 0 insertions, 0 deletions