diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-07 19:07:54 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-07 19:07:54 -0400 |
commit | d5e8b3f451120d7b40d72b54d749fbe7b54ca90f (patch) | |
tree | 6469a6c711c9a4aad2ea7fad5f82bdd853d36480 /src/nvim/misc1.c | |
parent | 0e4a54a17b92545ce8c4d4ac0212a424bbe990ca (diff) | |
download | rneovim-d5e8b3f451120d7b40d72b54d749fbe7b54ca90f.tar.gz rneovim-d5e8b3f451120d7b40d72b54d749fbe7b54ca90f.tar.bz2 rneovim-d5e8b3f451120d7b40d72b54d749fbe7b54ca90f.zip |
misc: fixpos in del_char() is bool
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index a312783c64..e04d84ffc8 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1555,14 +1555,12 @@ void ins_str(char_u *s) curwin->w_cursor.col += newlen; } -/* - * Delete one character under the cursor. - * If "fixpos" is TRUE, don't leave the cursor on the NUL after the line. - * Caller must have prepared for undo. - * - * return FAIL for failure, OK otherwise - */ -int del_char(int fixpos) +// Delete one character under the cursor. +// If "fixpos" is true, don't leave the cursor on the NUL after the line. +// Caller must have prepared for undo. +// +// return FAIL for failure, OK otherwise +int del_char(bool fixpos) { if (has_mbyte) { /* Make sure the cursor is at the start of a character. */ |