aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-18 07:09:05 +0800
committerGitHub <noreply@github.com>2024-05-18 07:09:05 +0800
commit62eb7e79a5f9b5f476f034b5446d2972c840ef87 (patch)
tree7d4ad0a263d658fb04c5f461e8f2a1b72bdd71df /src/nvim/drawline.c
parent5947f249f838eb56f8d186e69f4f58e9dee009ed (diff)
downloadrneovim-62eb7e79a5f9b5f476f034b5446d2972c840ef87.tar.gz
rneovim-62eb7e79a5f9b5f476f034b5446d2972c840ef87.tar.bz2
rneovim-62eb7e79a5f9b5f476f034b5446d2972c840ef87.zip
vim-patch:9.1.0418: Cannot move to previous/next rare word (#28822)
Problem: Cannot move to previous/next rare word (Colin Kennedy) Solution: Add the ]r and [r motions (Christ van Willegen) fixes: vim/vim#14773 closes: vim/vim#14780 https://github.com/vim/vim/commit/8e4c4c7d87def2b100a5d64dc518ef85d9de8765 Co-authored-by: Christ van Willegen - van Noort <github.com@vanwillegen-vannoort.nl>
Diffstat (limited to 'src/nvim/drawline.c')
-rw-r--r--src/nvim/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
index 283f7d9d61..07944081da 100644
--- a/src/nvim/drawline.c
+++ b/src/nvim/drawline.c
@@ -1415,7 +1415,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, s
pos_T pos = wp->w_cursor;
wp->w_cursor.lnum = lnum;
wp->w_cursor.col = linecol;
- size_t len = spell_move_to(wp, FORWARD, true, true, &spell_hlf);
+ size_t len = spell_move_to(wp, FORWARD, SMT_ALL, true, &spell_hlf);
// spell_move_to() may call ml_get() and make "line" invalid
line = ml_get_buf(wp->w_buffer, lnum);