summaryrefslogtreecommitdiffstats
path: root/src/option.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/option.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/option.c')
-rw-r--r--src/option.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index fa4d188c2d..504ddf489d 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1685,6 +1685,10 @@ do_set(
*(char_u **)varp = vim_strsave(
(char_u *)"indent,eol,start");
break;
+ case 3:
+ *(char_u **)varp = vim_strsave(
+ (char_u *)"indent,eol,nostop");
+ break;
}
vim_free(oldval);
if (origval == oldval)
@@ -6818,7 +6822,7 @@ fill_breakat_flags(void)
*/
int
can_bs(
- int what) // BS_INDENT, BS_EOL or BS_START
+ int what) // BS_INDENT, BS_EOL, BS_START or BS_NOSTOP
{
#ifdef FEAT_JOB_CHANNEL
if (what == BS_START && bt_prompt(curbuf))
@@ -6826,7 +6830,8 @@ can_bs(
#endif
switch (*p_bs)
{
- case '2': return TRUE;
+ case '3': return TRUE;
+ case '2': return (what != BS_NOSTOP);
case '1': return (what != BS_START);
case '0': return FALSE;
}