edit.c: Fix one clint warning

This commit is contained in:
Thiago de Arruda 2015-10-26 09:56:24 -03:00
parent b4c82dba5c
commit 1726c7d999

View File

@ -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);