]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.354
- new
[packages/vim.git] / 7.3.354
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.354
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.354
11 Problem:    ":set backspace+=eol" doesn't work when 'backspace' has a 
12             backwards compatible value of 2.
13 Solution:   Convert the number to a string. (Hirohito Higashi)
14 Files:      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 -- 
64 hundred-and-one symptoms of being an internet addict:
65 206. 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    ///
This page took 0.03813 seconds and 3 git commands to generate.