diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-04 17:29:57 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-04 18:37:02 +0300 |
commit | 4cb63179008efbbef2f4134da448ae5bd7251281 (patch) | |
tree | 800bb97bbb553dd7ef9fe4f4e462375ca46ba5ab /src | |
parent | f81d1ce003010892859898ec0436f81a883d4f3c (diff) | |
download | rneovim-4cb63179008efbbef2f4134da448ae5bd7251281.tar.gz rneovim-4cb63179008efbbef2f4134da448ae5bd7251281.tar.bz2 rneovim-4cb63179008efbbef2f4134da448ae5bd7251281.zip |
spell: Fix V728: excessive check
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, |