aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-30 03:57:24 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-30 05:13:06 -0400
commit0e7048ae0558e457d37ce2d13dc5f1f9e62deb49 (patch)
tree7b892b17acbcac5e8298b641e336ee7de05647dd /src/nvim/misc1.c
parentc3edbf813a2a67d5d0889ff1420407dfb78847cb (diff)
downloadrneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.tar.gz
rneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.tar.bz2
rneovim-0e7048ae0558e457d37ce2d13dc5f1f9e62deb49.zip
lint
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 57285fa252..61fe5e74eb 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -745,9 +745,9 @@ open_line (
if (dir == BACKWARD)
--curwin->w_cursor.lnum;
if (!(State & VREPLACE_FLAG) || old_cursor.lnum >= orig_line_count) {
- if (ml_append(curwin->w_cursor.lnum, p_extra, (colnr_T)0, FALSE)
- == FAIL)
+ if (ml_append(curwin->w_cursor.lnum, p_extra, (colnr_T)0, false) == FAIL) {
goto theend;
+ }
// Postpone calling changed_lines(), because it would mess up folding
// with markers.
// Skip mark_adjust when adding a line after the last one, there can't
@@ -1747,8 +1747,8 @@ del_lines (
if (curbuf->b_ml.ml_flags & ML_EMPTY) /* nothing to delete */
break;
- ml_delete(first, TRUE);
- ++n;
+ ml_delete(first, true);
+ n++;
/* If we delete the last line in the file, stop */
if (first > curbuf->b_ml.ml_line_count)