]> git.ipfire.org Git - ipfire-3.x.git/blame - vim/patches/vim-7.3.354.patch0
python3: Update to 3.6.3
[ipfire-3.x.git] / vim / patches / vim-7.3.354.patch0
CommitLineData
c6060300
MT
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.354
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.354
11Problem: ":set backspace+=eol" doesn't work when 'backspace' has a
12 backwards compatible value of 2.
13Solution: Convert the number to a string. (Hirohito Higashi)
14Files: src/option.c
15
16
17*** ../vim-7.3.353/src/option.c 2011-10-12 16:57:07.000000000 +0200
18--- src/option.c 2011-11-30 11:11:15.000000000 +0100
19***************
20*** 4567,4572 ****
21--- 4567,4597 ----
22 arg = errbuf;
23 }
24 /*
25+ * Convert 'backspace' number to string, for
26+ * adding, prepending and removing string.
27+ */
28+ else if (varp == (char_u *)&p_bs
29+ && VIM_ISDIGIT(**(char_u **)varp))
30+ {
31+ i = getdigits((char_u **)varp);
32+ switch (i)
33+ {
34+ case 0:
35+ *(char_u **)varp = empty_option;
36+ break;
37+ case 1:
38+ *(char_u **)varp = vim_strsave(
39+ (char_u *)"indent,eol");
40+ break;
41+ case 2:
42+ *(char_u **)varp = vim_strsave(
43+ (char_u *)"indent,eol,start");
44+ break;
45+ }
46+ vim_free(oldval);
47+ oldval = *(char_u **)varp;
48+ }
49+ /*
50 * Convert 'whichwrap' number to string, for
51 * backwards compatibility with Vim 3.0.
52 * Misuse errbuf[] for the resulting string.
53*** ../vim-7.3.353/src/version.c 2011-10-26 23:48:17.000000000 +0200
54--- src/version.c 2011-11-30 11:14:44.000000000 +0100
55***************
56*** 716,717 ****
57--- 716,719 ----
58 { /* Add new patch number below this line */
59+ /**/
60+ 354,
61 /**/
62
63--
64hundred-and-one symptoms of being an internet addict:
65206. You religiously respond immediately to e-mail, while ignoring
66 your growing pile of snail mail.
67
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70\\\ an exciting new programming language -- http://www.Zimbu.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///