commit 5075043823c0e744a608542c2c8f27d4dddff3a0
parent ac772706cccbcfbd05699368492b51a34d78bcbd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 11 Jun 2025 06:41:09 +0800
vim-patch:9.1.1449: typo in pum_display()
Problem: typo in pum_display()
Solution: update the comment, remove empty new lines
(glepnir)
closes: vim/vim#17506
https://github.com/vim/vim/commit/ed4eb74f7a8eb47ff9f4dbba395fee9662c226d6
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
@@ -285,7 +285,7 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i
// for cmdline pum, no need for context lines unless target_win is set
context_lines = 0;
} else {
- // Leave two lines of context if possible
+ // Leave three lines of context if possible
validate_cheight(target_win);
int cline_visible_offset = target_win->w_cline_row +
target_win->w_cline_height - target_win->w_wrow;