diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-05 00:46:06 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-05 09:47:38 -0500 |
commit | 25cb2c722e74ea62c289ecba8a6e98db5ee67493 (patch) | |
tree | 1985ab29cd263db3e14ace22ba3644c38f837190 /src/nvim/edit.c | |
parent | 5b897acfc1e9bf3c44f7e255743e2b9c8b6d1142 (diff) | |
download | rneovim-25cb2c722e74ea62c289ecba8a6e98db5ee67493.tar.gz rneovim-25cb2c722e74ea62c289ecba8a6e98db5ee67493.tar.bz2 rneovim-25cb2c722e74ea62c289ecba8a6e98db5ee67493.zip |
vim-patch:8.2.0590: no 'backspace' value allows ignoring the insertion point
Problem: No 'backspace' value allows ignoring the insertion point.
Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes vim/vim#5940)
https://github.com/vim/vim/commit/aa0489e12d227d24752cf16e4e97058ac32edcc1
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 876e53e3cd..b2abb06075 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -8282,8 +8282,9 @@ static bool ins_bs(int c, int mode, int *inserted_space_p) } } while (revins_on || (curwin->w_cursor.col > mincol - && (curwin->w_cursor.lnum != Insstart_orig.lnum - || curwin->w_cursor.col != Insstart_orig.col))); + && (can_bs(BS_NOSTOP) + || (curwin->w_cursor.lnum != Insstart_orig.lnum + || curwin->w_cursor.col != Insstart_orig.col)))); } did_backspace = true; } |