summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-17 19:41:21 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-17 19:41:21 +0200
commitaa0489e12d227d24752cf16e4e97058ac32edcc1 (patch)
treec7bffc6ea5b5cf2ec14e15c00c99e779d3f4f15f /src/edit.c
parent0fc1288aefce25da0a2fb2a0aab75b0bd314403f (diff)
patch 8.2.0590: no 'backspace' value allows ignoring the insertion pointv8.2.0590
Problem: No 'backspace' value allows ignoring the insertion point. Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes #5940)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index edd2374e8f..3f0803f685 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4884,8 +4884,10 @@ ins_bs(
revins_on ||
#endif
(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;
}