diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-09-19 10:14:13 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-09-19 10:14:13 +0200 |
commit | 2f2c73265fd63af2f60799767417043ed15bd42c (patch) | |
tree | 192e67a2f5e4e9585fcf1a5676c5e161dcdd5847 | |
parent | 0ba2b955afb7b92e5c68b7dc8f4232ddb67b4b54 (diff) | |
download | rneovim-2f2c73265fd63af2f60799767417043ed15bd42c.tar.gz rneovim-2f2c73265fd63af2f60799767417043ed15bd42c.tar.bz2 rneovim-2f2c73265fd63af2f60799767417043ed15bd42c.zip |
lint: is lint
-rw-r--r-- | src/nvim/ops.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 36b1b662f7..6209dd6492 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1560,19 +1560,21 @@ int op_delete(oparg_T *oap) beginline(BL_WHITE); // cursor on first non-white did_ai = true; // delete the indent when ESC hit ai_col = curwin->w_cursor.col; - } else + } else { beginline(0); // cursor in column 0 + } int old_len = (int)STRLEN(ml_get(curwin->w_cursor.lnum)); - truncate_line(FALSE); // delete the rest of the line + truncate_line(false); // delete the rest of the line extmark_splice_cols(curbuf, (int)curwin->w_cursor.lnum-1, curwin->w_cursor.col, old_len - curwin->w_cursor.col, 0, kExtmarkUndo); // leave cursor past last char in line - if (oap->line_count > 1) - u_clearline(); /* "U" command not possible after "2cc" */ + if (oap->line_count > 1) { + u_clearline(); // "U" command not possible after "2cc" + } } else { del_lines(oap->line_count, TRUE); beginline(BL_WHITE | BL_FIX); |