0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.3.354

Problem:    ":set backspace+=eol" doesn't work when 'backspace' has a
            backwards compatible value of 2.
Solution:   Convert the number to a string. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2011-11-30 11:15:47 +01:00
parent 1dff76bcb8
commit 4e5ccfa5c7
2 changed files with 27 additions and 0 deletions

View File

@@ -4566,6 +4566,31 @@ do_set(arg, opt_flags)
save_arg = arg; save_arg = arg;
arg = errbuf; arg = errbuf;
} }
/*
* Convert 'backspace' number to string, for
* adding, prepending and removing string.
*/
else if (varp == (char_u *)&p_bs
&& VIM_ISDIGIT(**(char_u **)varp))
{
i = getdigits((char_u **)varp);
switch (i)
{
case 0:
*(char_u **)varp = empty_option;
break;
case 1:
*(char_u **)varp = vim_strsave(
(char_u *)"indent,eol");
break;
case 2:
*(char_u **)varp = vim_strsave(
(char_u *)"indent,eol,start");
break;
}
vim_free(oldval);
oldval = *(char_u **)varp;
}
/* /*
* Convert 'whichwrap' number to string, for * Convert 'whichwrap' number to string, for
* backwards compatibility with Vim 3.0. * backwards compatibility with Vim 3.0.

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
354,
/**/ /**/
353, 353,
/**/ /**/