]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.414
- up to 7.3.600
[packages/vim.git] / 7.3.414
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.414
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.414
11 Problem:    Using CTRL-A on "000" drops the leading zero, while on "001" it
12             doesn't.
13 Solution:   Detect "000" as an octal number. (James McCoy)
14 Files:      src/charset.c
15
16
17 *** ../vim-7.3.413/src/charset.c        2012-01-10 22:26:12.000000000 +0100
18 --- src/charset.c       2012-01-26 13:33:45.000000000 +0100
19 ***************
20 *** 764,770 ****
21   }
22   
23   /*
24 !  * Return the number of characters string "s" will take on the screen,
25    * counting TABs as two characters: "^I".
26    */
27       int
28 --- 764,770 ----
29   }
30   
31   /*
32 !  * Return the number of character cells string "s" will take on the screen,
33    * counting TABs as two characters: "^I".
34    */
35       int
36 ***************
37 *** 775,782 ****
38   }
39   
40   /*
41 !  * Return the number of characters string "s[len]" will take on the screen,
42 !  * counting TABs as two characters: "^I".
43    */
44       int
45   vim_strnsize(s, len)
46 --- 775,782 ----
47   }
48   
49   /*
50 !  * Return the number of character cells string "s[len]" will take on the
51 !  * screen, counting TABs as two characters: "^I".
52    */
53       int
54   vim_strnsize(s, len)
55 ***************
56 *** 1830,1836 ****
57                         hex = 0;        /* can't be octal */
58                         break;
59                     }
60 !                   if (ptr[n] > '0')
61                         hex = '0';      /* assume octal */
62                 }
63             }
64 --- 1830,1836 ----
65                         hex = 0;        /* can't be octal */
66                         break;
67                     }
68 !                   if (ptr[n] >= '0')
69                         hex = '0';      /* assume octal */
70                 }
71             }
72 *** ../vim-7.3.413/src/version.c        2012-01-26 13:01:54.000000000 +0100
73 --- src/version.c       2012-01-26 13:38:04.000000000 +0100
74 ***************
75 *** 716,717 ****
76 --- 716,719 ----
77   {   /* Add new patch number below this line */
78 + /**/
79 +     414,
80   /**/
81
82 -- 
83 No engineer can take a shower without wondering if some sort of Teflon coating
84 would make showering unnecessary.
85                                 (Scott Adams - The Dilbert principle)
86
87  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
88 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
89 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
90  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.071213 seconds and 3 git commands to generate.