diff options
author | jbyuki <jyburkhard@hotmail.com> | 2021-06-09 11:57:37 +0200 |
---|---|---|
committer | jbyuki <jyburkhard@hotmail.com> | 2021-06-09 11:57:37 +0200 |
commit | a1db340cea485c6c616bd64afb53a9e6430944fc (patch) | |
tree | 88194916998e8cf9764f7551bd723eef117df1fa /src | |
parent | d9e11f4f78544c280164ca95c979c1b42e46cfec (diff) | |
download | rneovim-a1db340cea485c6c616bd64afb53a9e6430944fc.tar.gz rneovim-a1db340cea485c6c616bd64afb53a9e6430944fc.tar.bz2 rneovim-a1db340cea485c6c616bd64afb53a9e6430944fc.zip |
minor fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/change.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 39b94bbba1..b673683460 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -1690,7 +1690,6 @@ int open_line( if (trunc_line && !(flags & OPENLINE_KEEPTRAIL)) { truncate_spaces(saved_line); } - ml_replace(curwin->w_cursor.lnum, saved_line, false); int new_len = (int)STRLEN(saved_line); @@ -1705,7 +1704,6 @@ int open_line( } saved_line = NULL; - if (did_append) { changed_lines(curwin->w_cursor.lnum, curwin->w_cursor.col, curwin->w_cursor.lnum + 1, 1L, true); @@ -1726,7 +1724,6 @@ int open_line( } else { changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); } - } // Put the cursor on the new line. Careful: the scrollup() above may |