From 8e4c4c7d87def2b100a5d64dc518ef85d9de8765 Mon Sep 17 00:00:00 2001 From: Christ van Willegen - van Noort Date: Fri, 17 May 2024 18:49:27 +0200 Subject: patch 9.1.0418: Cannot move to previous/next rare word Problem: Cannot move to previous/next rare word (Colin Kennedy) Solution: Add the ]r and [r motions (Christ van Willegen) fixes: #14773 closes: #14780 Signed-off-by: Christ van Willegen - van Noort Signed-off-by: Christian Brabandt --- src/spellsuggest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spellsuggest.c') diff --git a/src/spellsuggest.c b/src/spellsuggest.c index c6e61832da..b305bfb83e 100644 --- a/src/spellsuggest.c +++ b/src/spellsuggest.c @@ -512,7 +512,7 @@ spell_suggest(int count) badlen = ml_get_curline_len() - (int)curwin->w_cursor.col; } // Find the start of the badly spelled word. - else if (spell_move_to(curwin, FORWARD, TRUE, TRUE, NULL) == 0 + else if (spell_move_to(curwin, FORWARD, SMT_ALL, TRUE, NULL) == 0 || curwin->w_cursor.col > prev_cursor.col) { // No bad word or it starts after the cursor: use the word under the -- cgit v1.2.3