0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menu

Problem:    Cannot use page-up and page-down in the command line completion
            popup menu.
Solution:   Check for to page-up and page-down keys. (Yegappan Lakshmanan,
            closes #9960)
This commit is contained in:
Yegappan Lakshmanan
2022-03-16 13:33:53 +00:00
committed by Bram Moolenaar
parent fe8e9f6740
commit 5cffa8df7e
15 changed files with 212 additions and 17 deletions

View File

@@ -509,7 +509,7 @@ spell_suggest(int count)
// make sure we don't include the NUL at the end of the line
line = ml_get_curline();
if (badlen > (int)STRLEN(line) - (int)curwin->w_cursor.col)
badlen = STRLEN(line) - curwin->w_cursor.col;
badlen = (int)STRLEN(line) - (int)curwin->w_cursor.col;
}
// Find the start of the badly spelled word.
else if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0