diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-08-22 16:10:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 07:10:57 -0700 |
commit | db1b0ee3b30fd4cd323907c7f24bd575c22e68f0 (patch) | |
tree | f018c725dfbafc2d128db9ed5a4b3662cce14429 /src/nvim/ops.c | |
parent | 783140c670115541f3eb68be6e148f2eeb1696e1 (diff) | |
download | rneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.tar.gz rneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.tar.bz2 rneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.zip |
refactor: replace TRUE/FALSE with true/false #15425
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index a6eda26d75..178b454e4e 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1121,18 +1121,13 @@ static void put_reedit_in_typebuf(int silent) } } -/* - * Insert register contents "s" into the typeahead buffer, so that it will be - * executed again. - * When "esc" is TRUE it is to be taken literally: Escape CSI characters and - * no remapping. - */ -static int put_in_typebuf( - char_u *s, - bool esc, - bool colon, // add ':' before the line - int silent -) +/// Insert register contents "s" into the typeahead buffer, so that it will be +/// executed again. +/// +/// @param esc when true then it is to be taken literally: Escape CSI +/// characters and no remapping. +/// @param colon add ':' before the line +static int put_in_typebuf(char_u *s, bool esc, bool colon, int silent) { int retval = OK; @@ -1567,8 +1562,8 @@ int op_delete(oparg_T *oap) if (oap->line_count > 1) { lnum = curwin->w_cursor.lnum; - ++curwin->w_cursor.lnum; - del_lines(oap->line_count - 1, TRUE); + curwin->w_cursor.lnum++; + del_lines(oap->line_count - 1, true); curwin->w_cursor.lnum = lnum; } if (u_save_cursor() == FAIL) @@ -1593,7 +1588,7 @@ int op_delete(oparg_T *oap) u_clearline(); // "U" command not possible after "2cc" } } else { - del_lines(oap->line_count, TRUE); + del_lines(oap->line_count, true); beginline(BL_WHITE | BL_FIX); u_clearline(); /* "U" command not possible after "dd" */ } |