From 1726c7d999e68b4ed8aee234b7dfa339ed0784b2 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Mon, 26 Oct 2015 09:56:24 -0300 Subject: [PATCH] edit.c: Fix one clint warning --- src/nvim/edit.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 31fc50d4d6..abd16e57ae 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -7782,12 +7782,8 @@ static void ins_left(bool end_change) if (revins_scol != -1 && (int)curwin->w_cursor.col >= revins_scol) revins_legal++; revins_chars++; - } - /* - * 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) { + } 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. // always break undo when moving upwards/downwards, else undo may break start_arrow(&tpos); --(curwin->w_cursor.lnum);