diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/spell.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 25ae562e65..5785ee1a00 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -1433,12 +1433,10 @@ spell_move_to (            // the cursor.            if (dir == BACKWARD                || lnum != wp->w_cursor.lnum -              || (lnum == wp->w_cursor.lnum -                  && (wrapped -                      || ((colnr_T)(curline -                                    ? p - buf + (ptrdiff_t)len -                                    : p - buf) -                          > wp->w_cursor.col)))) { +              || wrapped +              || ((colnr_T)(curline +                            ? p - buf + (ptrdiff_t)len +                            : p - buf) > wp->w_cursor.col)) {              if (has_syntax) {                col = (int)(p - buf);                (void)syn_get_id(wp, lnum, (colnr_T)col, | 
