summaryrefslogtreecommitdiffstats
path: root/src/spellsuggest.c
diff options
context:
space:
mode:
authorChrist van Willegen - van Noort <github.com@vanwillegen-vannoort.nl>2024-05-17 18:49:27 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-17 18:52:45 +0200
commit8e4c4c7d87def2b100a5d64dc518ef85d9de8765 (patch)
tree52e523d63196ca353a18d0fb13d2f98ffbd80ca3 /src/spellsuggest.c
parentcf78d0df51f2737f278a2410f166862001d875ae (diff)
patch 9.1.0418: Cannot move to previous/next rare wordv9.1.0418
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 <github.com@vanwillegen-vannoort.nl> Signed-off-by: Christian Brabandt <cb@256bit.org>
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 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