diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-29 06:35:11 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-29 21:12:32 +0800 |
commit | 675ee057e06578e8d87ed2ea54ab8915caecdb0f (patch) | |
tree | 652087e5734b27f4c240be000d25f98fec4f6834 /src | |
parent | 62da4e2949cc906102bd768cdd40b274623822b6 (diff) | |
download | rneovim-675ee057e06578e8d87ed2ea54ab8915caecdb0f.tar.gz rneovim-675ee057e06578e8d87ed2ea54ab8915caecdb0f.tar.bz2 rneovim-675ee057e06578e8d87ed2ea54ab8915caecdb0f.zip |
vim-patch:9.1.1255: missing test condition for 'pummaxwidth' setting
Problem: missing test condition for 'pummaxwidth' setting, pummaxwidth
not effective when width is 32 and height is 10
(after v9.1.1250)
Solution: add missing comparison condition in pum_width()
(glepnir)
closes: vim/vim#16999
https://github.com/vim/vim/commit/532c5aec6fa8f0a3d743c7d1573d25d75dd36d5f
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/popupmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c index 75f1c93ed7..4ce4f9632f 100644 --- a/src/nvim/popupmenu.c +++ b/src/nvim/popupmenu.c @@ -391,6 +391,8 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i if (p_pmw > 0 && pum_width > p_pmw) { pum_width = (int)p_pmw; } + } else if (p_pmw > 0 && pum_width > p_pmw) { + pum_width = (int)p_pmw; } } } else if (max_col - min_col < def_width) { |