Mercurial > vim
comparison src/spellsuggest.c @ 28109:06535d568f74 v8.2.4579
patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menu
Commit: https://github.com/vim/vim/commit/5cffa8df7e3c28681b9e5deef6df395784359b6b
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Mar 16 13:33:53 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Mar 2022 14:45:04 +0100 |
parents | b737bfa876c5 |
children | d0241e74bfdb |
comparison
equal
deleted
inserted
replaced
28108:00e653cb7b22 | 28109:06535d568f74 |
---|---|
507 ++badlen; | 507 ++badlen; |
508 end_visual_mode(); | 508 end_visual_mode(); |
509 // make sure we don't include the NUL at the end of the line | 509 // make sure we don't include the NUL at the end of the line |
510 line = ml_get_curline(); | 510 line = ml_get_curline(); |
511 if (badlen > (int)STRLEN(line) - (int)curwin->w_cursor.col) | 511 if (badlen > (int)STRLEN(line) - (int)curwin->w_cursor.col) |
512 badlen = STRLEN(line) - curwin->w_cursor.col; | 512 badlen = (int)STRLEN(line) - (int)curwin->w_cursor.col; |
513 } | 513 } |
514 // Find the start of the badly spelled word. | 514 // Find the start of the badly spelled word. |
515 else if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0 | 515 else if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0 |
516 || curwin->w_cursor.col > prev_cursor.col) | 516 || curwin->w_cursor.col > prev_cursor.col) |
517 { | 517 { |