diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-12-13 21:33:06 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-12-13 21:33:26 +0800 |
commit | 1386d36e7687edb1b65e338045eaff37ab32d582 (patch) | |
tree | b76c101031a5c8f735405858b626ae6ff4db2b4a /src/nvim/popupmenu.c | |
parent | 8a0b203875610ce61539492c5aceb9c72e959806 (diff) | |
download | rneovim-1386d36e7687edb1b65e338045eaff37ab32d582.tar.gz rneovim-1386d36e7687edb1b65e338045eaff37ab32d582.tar.bz2 rneovim-1386d36e7687edb1b65e338045eaff37ab32d582.zip |
vim-patch:9.1.092: vim-patch:9.1.0923: wrong MIN macro in popupmenu.c
Problem: wrong MIN macro in popupmenu.c (after v9.1.0921)
(zeertzjq)
Solution: change it to MAX()
https://github.com/vim/vim/commit/618c4d36ca92a62212a37e787c202229ceff8537
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'src/nvim/popupmenu.c')
-rw-r--r-- | src/nvim/popupmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c index 744b2fd82e..5dc9ddfd60 100644 --- a/src/nvim/popupmenu.c +++ b/src/nvim/popupmenu.c @@ -377,7 +377,7 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i } } } else if (pum_width > content_width && pum_width > p_pw) { - pum_width = MIN(content_width, (int)p_pw); + pum_width = MAX(content_width, (int)p_pw); } } } else if (max_col - min_col < def_width) { |