From 5075043823c0e744a608542c2c8f27d4dddff3a0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 11 Jun 2025 06:41:09 +0800 Subject: [PATCH] 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 --- src/nvim/popupmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c index d79d4b3c43..41b6f58c1b 100644 --- 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;