Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit429ba1c

Browse files
committed
fix(spell): correct spell move behavior without "noplainbuffer"
1 parent9ca313f commit429ba1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/nvim/spell.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,14 +1344,14 @@ size_t spell_move_to(win_T *wp, int dir, bool allwords, bool curline, hlf_T *att
13441344
:p-buf)>wp->w_cursor.col)) {
13451345
col= (colnr_T)(p-buf);
13461346

1347-
boolcan_spell= (wp->w_s->b_p_spo_flags&SPO_NPBUFFER)==0;
1347+
boolcan_spell=decor_spell_nav_col(wp,lnum,&decor_lnum,col,&decor_error);
13481348

13491349
if (!can_spell) {
1350-
can_spell=decor_spell_nav_col(wp,lnum,&decor_lnum,col,&decor_error);
1351-
}
1350+
can_spell= (wp->w_s->b_p_spo_flags&SPO_NPBUFFER)==0;
13521351

1353-
if (!can_spell&&has_syntax) {
1354-
(void)syn_get_id(wp,lnum,col, false,&can_spell, false);
1352+
if (has_syntax) {
1353+
(void)syn_get_id(wp,lnum,col, false,&can_spell, false);
1354+
}
13551355
}
13561356

13571357
if (!can_spell) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp