mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
edit.c: Fix one clint warning
This commit is contained in:
parent
b4c82dba5c
commit
1726c7d999
@ -7782,12 +7782,8 @@ static void ins_left(bool end_change)
|
|||||||
if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol)
|
if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol)
|
||||||
revins_legal++;
|
revins_legal++;
|
||||||
revins_chars++;
|
revins_chars++;
|
||||||
}
|
} else if (vim_strchr(p_ww, '[') != NULL && curwin->w_cursor.lnum > 1) {
|
||||||
/*
|
// if 'whichwrap' set for cursor in insert mode may go to previous line.
|
||||||
* if 'whichwrap' set for cursor in insert mode may go to
|
|
||||||
* previous line
|
|
||||||
*/
|
|
||||||
else if (vim_strchr(p_ww, '[') != NULL && curwin->w_cursor.lnum > 1) {
|
|
||||||
// always break undo when moving upwards/downwards, else undo may break
|
// always break undo when moving upwards/downwards, else undo may break
|
||||||
start_arrow(&tpos);
|
start_arrow(&tpos);
|
||||||
--(curwin->w_cursor.lnum);
|
--(curwin->w_cursor.lnum);
|
||||||
|
Loading…
Reference in New Issue
Block a user