|
Karsten Hopp |
62b65c |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
62b65c |
Subject: Patch 7.3.354
|
|
Karsten Hopp |
62b65c |
Fcc: outbox
|
|
Karsten Hopp |
62b65c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
62b65c |
Mime-Version: 1.0
|
|
Karsten Hopp |
62b65c |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
62b65c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
62b65c |
------------
|
|
Karsten Hopp |
62b65c |
|
|
Karsten Hopp |
62b65c |
Patch 7.3.354
|
|
Karsten Hopp |
62b65c |
Problem: ":set backspace+=eol" doesn't work when 'backspace' has a
|
|
Karsten Hopp |
62b65c |
backwards compatible value of 2.
|
|
Karsten Hopp |
62b65c |
Solution: Convert the number to a string. (Hirohito Higashi)
|
|
Karsten Hopp |
62b65c |
Files: src/option.c
|
|
Karsten Hopp |
62b65c |
|
|
Karsten Hopp |
62b65c |
|
|
Karsten Hopp |
62b65c |
*** ../vim-7.3.353/src/option.c 2011-10-12 16:57:07.000000000 +0200
|
|
Karsten Hopp |
62b65c |
--- src/option.c 2011-11-30 11:11:15.000000000 +0100
|
|
Karsten Hopp |
62b65c |
***************
|
|
Karsten Hopp |
62b65c |
*** 4567,4572 ****
|
|
Karsten Hopp |
62b65c |
--- 4567,4597 ----
|
|
Karsten Hopp |
62b65c |
arg = errbuf;
|
|
Karsten Hopp |
62b65c |
}
|
|
Karsten Hopp |
62b65c |
/*
|
|
Karsten Hopp |
62b65c |
+ * Convert 'backspace' number to string, for
|
|
Karsten Hopp |
62b65c |
+ * adding, prepending and removing string.
|
|
Karsten Hopp |
62b65c |
+ */
|
|
Karsten Hopp |
62b65c |
+ else if (varp == (char_u *)&p_bs
|
|
Karsten Hopp |
62b65c |
+ && VIM_ISDIGIT(**(char_u **)varp))
|
|
Karsten Hopp |
62b65c |
+ {
|
|
Karsten Hopp |
62b65c |
+ i = getdigits((char_u **)varp);
|
|
Karsten Hopp |
62b65c |
+ switch (i)
|
|
Karsten Hopp |
62b65c |
+ {
|
|
Karsten Hopp |
62b65c |
+ case 0:
|
|
Karsten Hopp |
62b65c |
+ *(char_u **)varp = empty_option;
|
|
Karsten Hopp |
62b65c |
+ break;
|
|
Karsten Hopp |
62b65c |
+ case 1:
|
|
Karsten Hopp |
62b65c |
+ *(char_u **)varp = vim_strsave(
|
|
Karsten Hopp |
62b65c |
+ (char_u *)"indent,eol");
|
|
Karsten Hopp |
62b65c |
+ break;
|
|
Karsten Hopp |
62b65c |
+ case 2:
|
|
Karsten Hopp |
62b65c |
+ *(char_u **)varp = vim_strsave(
|
|
Karsten Hopp |
62b65c |
+ (char_u *)"indent,eol,start");
|
|
Karsten Hopp |
62b65c |
+ break;
|
|
Karsten Hopp |
62b65c |
+ }
|
|
Karsten Hopp |
62b65c |
+ vim_free(oldval);
|
|
Karsten Hopp |
62b65c |
+ oldval = *(char_u **)varp;
|
|
Karsten Hopp |
62b65c |
+ }
|
|
Karsten Hopp |
62b65c |
+ /*
|
|
Karsten Hopp |
62b65c |
* Convert 'whichwrap' number to string, for
|
|
Karsten Hopp |
62b65c |
* backwards compatibility with Vim 3.0.
|
|
Karsten Hopp |
62b65c |
* Misuse errbuf[] for the resulting string.
|
|
Karsten Hopp |
62b65c |
*** ../vim-7.3.353/src/version.c 2011-10-26 23:48:17.000000000 +0200
|
|
Karsten Hopp |
62b65c |
--- src/version.c 2011-11-30 11:14:44.000000000 +0100
|
|
Karsten Hopp |
62b65c |
***************
|
|
Karsten Hopp |
62b65c |
*** 716,717 ****
|
|
Karsten Hopp |
62b65c |
--- 716,719 ----
|
|
Karsten Hopp |
62b65c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
62b65c |
+ /**/
|
|
Karsten Hopp |
62b65c |
+ 354,
|
|
Karsten Hopp |
62b65c |
/**/
|
|
Karsten Hopp |
62b65c |
|
|
Karsten Hopp |
62b65c |
--
|
|
Karsten Hopp |
62b65c |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
62b65c |
206. You religiously respond immediately to e-mail, while ignoring
|
|
Karsten Hopp |
62b65c |
your growing pile of snail mail.
|
|
Karsten Hopp |
62b65c |
|
|
Karsten Hopp |
62b65c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
62b65c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
62b65c |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
62b65c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|