mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
spell: Fix V728: excessive check
This commit is contained in:
@@ -1433,12 +1433,10 @@ spell_move_to (
|
||||
// the cursor.
|
||||
if (dir == BACKWARD
|
||||
|| lnum != wp->w_cursor.lnum
|
||||
|| (lnum == wp->w_cursor.lnum
|
||||
&& (wrapped
|
||||
|| wrapped
|
||||
|| ((colnr_T)(curline
|
||||
? p - buf + (ptrdiff_t)len
|
||||
: p - buf)
|
||||
> wp->w_cursor.col)))) {
|
||||
: p - buf) > wp->w_cursor.col)) {
|
||||
if (has_syntax) {
|
||||
col = (int)(p - buf);
|
||||
(void)syn_get_id(wp, lnum, (colnr_T)col,
|
||||
|
Reference in New Issue
Block a user