aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/popupmenu.c
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-10-03 17:58:15 +0800
committerGitHub <noreply@github.com>2024-10-03 09:58:15 +0000
commitcc300e553b458e08c4b1d4be117ee51a289cbdee (patch)
tree856f7cdc2bbe25bbc43393f060d61acad9491be0 /src/nvim/popupmenu.c
parentae0e4071a8c90f96a66efc07f421fa7bf15f27f6 (diff)
downloadrneovim-cc300e553b458e08c4b1d4be117ee51a289cbdee.tar.gz
rneovim-cc300e553b458e08c4b1d4be117ee51a289cbdee.tar.bz2
rneovim-cc300e553b458e08c4b1d4be117ee51a289cbdee.zip
vim-patch:9.1.0756: missing change from patch v9.1.0754 (#30636)
Problem: missing change from patch v9.1.0754 Solution: use correct width for the actual item in pum_redraw() (glepnir) closes: vim/vim#15786 https://github.com/vim/vim/commit/a6d9e3c4e07f73f6523699961d8b7b54bdb80cf6
Diffstat (limited to 'src/nvim/popupmenu.c')
-rw-r--r--src/nvim/popupmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
index b7892da867..ddcb819054 100644
--- a/src/nvim/popupmenu.c
+++ b/src/nvim/popupmenu.c
@@ -764,7 +764,7 @@ void pum_redraw(void)
// Stop when there is nothing more to display.
if ((j == 2)
|| (next_isempty && (j == 1 || (j == 0 && pum_get_item(idx, order[j + 2]) == NULL)))
- || (pum_base_width + n >= pum_width)) {
+ || (basic_width + n >= pum_width)) {
break;
}