mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
spell: Fix V728: excessive check
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user