diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-07 12:32:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-07 13:11:51 -0400 |
commit | 672449e448e504b0ee1e4f1fea13932c90ae8211 (patch) | |
tree | 4eecbebfc5491a63e9e1783e52ff220fad77d2f0 /src/nvim/edit.c | |
parent | 80df0a8fd23f4b51792e6f4a5f373b3aca1437c8 (diff) | |
download | rneovim-672449e448e504b0ee1e4f1fea13932c90ae8211.tar.gz rneovim-672449e448e504b0ee1e4f1fea13932c90ae8211.tar.bz2 rneovim-672449e448e504b0ee1e4f1fea13932c90ae8211.zip |
memline: copy in ml_replace() is bool
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index faf0cebea5..1da9ae3276 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -1766,8 +1766,8 @@ change_indent ( /* We only put back the new line up to the cursor */ new_line[curwin->w_cursor.col] = NUL; - /* Put back original line */ - ml_replace(curwin->w_cursor.lnum, orig_line, FALSE); + // Put back original line + ml_replace(curwin->w_cursor.lnum, orig_line, false); curwin->w_cursor.col = orig_col; /* Backspace from cursor to start of line */ @@ -5770,8 +5770,8 @@ auto_format ( pnew = vim_strnsave(new, len + 2); pnew[len] = ' '; pnew[len + 1] = NUL; - ml_replace(curwin->w_cursor.lnum, pnew, FALSE); - /* remove the space later */ + ml_replace(curwin->w_cursor.lnum, pnew, false); + // remove the space later did_add_space = TRUE; } else /* may remove added space */ |