diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-10 14:30:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-10 14:30:19 +0200 |
commit | 23d172a948e77c4e1d03db3b06efac6e9edd3695 (patch) | |
tree | 667d02fed523fc78013a46b14a3cf26e2ac26c86 /src/nvim/edit.c | |
parent | 3fddd04565c3b511d27e61d1c426dda8c07f3b6d (diff) | |
parent | 392b3396fd2218b1de7fedf49a834a471431be29 (diff) | |
download | rneovim-23d172a948e77c4e1d03db3b06efac6e9edd3695.tar.gz rneovim-23d172a948e77c4e1d03db3b06efac6e9edd3695.tar.bz2 rneovim-23d172a948e77c4e1d03db3b06efac6e9edd3695.zip |
Merge #8499 from janlazo/vim-8.0.0533
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 0512dc0d3a..f3e2663d76 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -7547,9 +7547,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p) curwin->w_cursor.coladd = 0; } - /* - * delete newline! - */ + // Delete newline! if (curwin->w_cursor.col == 0) { lnum = Insstart.lnum; if (curwin->w_cursor.lnum == lnum || revins_on) { @@ -7558,7 +7556,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p) return false; } Insstart.lnum--; - Insstart.col = MAXCOL; + Insstart.col = (colnr_T)STRLEN(ml_get(Insstart.lnum)); } /* * In replace mode: |