summaryrefslogtreecommitdiff
path: root/src/spellsuggest.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-03-16 13:33:53 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-16 13:33:53 +0000
commit5cffa8df7e3c28681b9e5deef6df395784359b6b (patch)
tree0164635aec712ab5ca866b9f7354288664f568b1 /src/spellsuggest.c
parentfe8e9f674036f3206b0080f4a931c991cf142f8b (diff)
downloadvim-git-5cffa8df7e3c28681b9e5deef6df395784359b6b.tar.gz
patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menuv8.2.4579
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)
Diffstat (limited to 'src/spellsuggest.c')
-rw-r--r--src/spellsuggest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spellsuggest.c b/src/spellsuggest.c
index 1e389663c..73ea210a0 100644
--- a/src/spellsuggest.c
+++ b/src/spellsuggest.c
@@ -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