diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-30 12:24:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 12:24:56 +0200 |
commit | 8342b4486b43e6664b6412ac0c8a549097220df2 (patch) | |
tree | 7b892b17acbcac5e8298b641e336ee7de05647dd /src/nvim/ex_docmd.c | |
parent | 63526f2eeee774c657270a1ec0cbd788480f14b7 (diff) | |
parent | 0e7048ae0558e457d37ce2d13dc5f1f9e62deb49 (diff) | |
download | rneovim-8342b4486b43e6664b6412ac0c8a549097220df2.tar.gz rneovim-8342b4486b43e6664b6412ac0c8a549097220df2.tar.bz2 rneovim-8342b4486b43e6664b6412ac0c8a549097220df2.zip |
Merge #9957 from janlazo/vim-8.0.1263
vim-patch:8.0.{1263,1265,1267}
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 9fc047dde9..a028814f3d 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7213,10 +7213,11 @@ static void ex_read(exarg_T *eap) else lnum = 1; if (*ml_get(lnum) == NUL && u_savedel(lnum, 1L) == OK) { - ml_delete(lnum, FALSE); + ml_delete(lnum, false); if (curwin->w_cursor.lnum > 1 - && curwin->w_cursor.lnum >= lnum) - --curwin->w_cursor.lnum; + && curwin->w_cursor.lnum >= lnum) { + curwin->w_cursor.lnum--; + } deleted_lines_mark(lnum, 1L); } } |