1
0
forked from aniani/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 #5940)
This commit is contained in:
Bram Moolenaar
2020-04-17 19:41:21 +02:00
parent 0fc1288aef
commit aa0489e12d
8 changed files with 67 additions and 9 deletions

View File

@@ -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;
}