spell: Fix V728: excessive check

This commit is contained in:
ZyX
2017-07-04 17:29:57 +03:00
parent f81d1ce003
commit 4cb6317900

View File

@@ -1433,12 +1433,10 @@ spell_move_to (
// the cursor. // the cursor.
if (dir == BACKWARD if (dir == BACKWARD
|| lnum != wp->w_cursor.lnum || lnum != wp->w_cursor.lnum
|| (lnum == wp->w_cursor.lnum || wrapped
&& (wrapped || ((colnr_T)(curline
|| ((colnr_T)(curline ? p - buf + (ptrdiff_t)len
? p - buf + (ptrdiff_t)len : p - buf) > wp->w_cursor.col)) {
: p - buf)
> wp->w_cursor.col)))) {
if (has_syntax) { if (has_syntax) {
col = (int)(p - buf); col = (int)(p - buf);
(void)syn_get_id(wp, lnum, (colnr_T)col, (void)syn_get_id(wp, lnum, (colnr_T)col,