]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.414 v7.3.414
authorBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2012 12:40:08 +0000 (13:40 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2012 12:40:08 +0000 (13:40 +0100)
Problem:    Using CTRL-A on "000" drops the leading zero, while on "001" it
            doesn't.
Solution:   Detect "000" as an octal number. (James McCoy)

src/charset.c
src/version.c

index 90cf06cebb4ba9985303dfb7eb74f4bcaabd37ad..98d4bff4055290860f7f6c2edbd3b269f9abf5b0 100644 (file)
@@ -764,7 +764,7 @@ ptr2cells(p)
 }
 
 /*
- * Return the number of characters string "s" will take on the screen,
+ * Return the number of character cells string "s" will take on the screen,
  * counting TABs as two characters: "^I".
  */
     int
@@ -775,8 +775,8 @@ vim_strsize(s)
 }
 
 /*
- * Return the number of characters string "s[len]" will take on the screen,
- * counting TABs as two characters: "^I".
+ * Return the number of character cells string "s[len]" will take on the
+ * screen, counting TABs as two characters: "^I".
  */
     int
 vim_strnsize(s, len)
@@ -1830,7 +1830,7 @@ vim_str2nr(start, hexp, len, dooct, dohex, nptr, unptr)
                        hex = 0;        /* can't be octal */
                        break;
                    }
-                   if (ptr[n] > '0')
+                   if (ptr[n] >= '0')
                        hex = '0';      /* assume octal */
                }
            }
index 36c3a84802328cffba2849e60193c8a561935431..f7ddf644d3334c916f1c52857b02d63e5a14748e 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    414,
 /**/
     413,
 /**/