Karsten Hopp e057ec
To: vim_dev@googlegroups.com
Karsten Hopp e057ec
Subject: Patch 7.3.414
Karsten Hopp e057ec
Fcc: outbox
Karsten Hopp e057ec
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e057ec
Mime-Version: 1.0
Karsten Hopp e057ec
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e057ec
Content-Transfer-Encoding: 8bit
Karsten Hopp e057ec
------------
Karsten Hopp e057ec
Karsten Hopp e057ec
Patch 7.3.414
Karsten Hopp e057ec
Problem:    Using CTRL-A on "000" drops the leading zero, while on "001" it
Karsten Hopp e057ec
	    doesn't.
Karsten Hopp e057ec
Solution:   Detect "000" as an octal number. (James McCoy)
Karsten Hopp e057ec
Files:	    src/charset.c
Karsten Hopp e057ec
Karsten Hopp e057ec
Karsten Hopp e057ec
*** ../vim-7.3.413/src/charset.c	2012-01-10 22:26:12.000000000 +0100
Karsten Hopp e057ec
--- src/charset.c	2012-01-26 13:33:45.000000000 +0100
Karsten Hopp e057ec
***************
Karsten Hopp e057ec
*** 764,770 ****
Karsten Hopp e057ec
  }
Karsten Hopp e057ec
  
Karsten Hopp e057ec
  /*
Karsten Hopp e057ec
!  * Return the number of characters string "s" will take on the screen,
Karsten Hopp e057ec
   * counting TABs as two characters: "^I".
Karsten Hopp e057ec
   */
Karsten Hopp e057ec
      int
Karsten Hopp e057ec
--- 764,770 ----
Karsten Hopp e057ec
  }
Karsten Hopp e057ec
  
Karsten Hopp e057ec
  /*
Karsten Hopp e057ec
!  * Return the number of character cells string "s" will take on the screen,
Karsten Hopp e057ec
   * counting TABs as two characters: "^I".
Karsten Hopp e057ec
   */
Karsten Hopp e057ec
      int
Karsten Hopp e057ec
***************
Karsten Hopp e057ec
*** 775,782 ****
Karsten Hopp e057ec
  }
Karsten Hopp e057ec
  
Karsten Hopp e057ec
  /*
Karsten Hopp e057ec
!  * Return the number of characters string "s[len]" will take on the screen,
Karsten Hopp e057ec
!  * counting TABs as two characters: "^I".
Karsten Hopp e057ec
   */
Karsten Hopp e057ec
      int
Karsten Hopp e057ec
  vim_strnsize(s, len)
Karsten Hopp e057ec
--- 775,782 ----
Karsten Hopp e057ec
  }
Karsten Hopp e057ec
  
Karsten Hopp e057ec
  /*
Karsten Hopp e057ec
!  * Return the number of character cells string "s[len]" will take on the
Karsten Hopp e057ec
!  * screen, counting TABs as two characters: "^I".
Karsten Hopp e057ec
   */
Karsten Hopp e057ec
      int
Karsten Hopp e057ec
  vim_strnsize(s, len)
Karsten Hopp e057ec
***************
Karsten Hopp e057ec
*** 1830,1836 ****
Karsten Hopp e057ec
  			hex = 0;	/* can't be octal */
Karsten Hopp e057ec
  			break;
Karsten Hopp e057ec
  		    }
Karsten Hopp e057ec
! 		    if (ptr[n] > '0')
Karsten Hopp e057ec
  			hex = '0';	/* assume octal */
Karsten Hopp e057ec
  		}
Karsten Hopp e057ec
  	    }
Karsten Hopp e057ec
--- 1830,1836 ----
Karsten Hopp e057ec
  			hex = 0;	/* can't be octal */
Karsten Hopp e057ec
  			break;
Karsten Hopp e057ec
  		    }
Karsten Hopp e057ec
! 		    if (ptr[n] >= '0')
Karsten Hopp e057ec
  			hex = '0';	/* assume octal */
Karsten Hopp e057ec
  		}
Karsten Hopp e057ec
  	    }
Karsten Hopp e057ec
*** ../vim-7.3.413/src/version.c	2012-01-26 13:01:54.000000000 +0100
Karsten Hopp e057ec
--- src/version.c	2012-01-26 13:38:04.000000000 +0100
Karsten Hopp e057ec
***************
Karsten Hopp e057ec
*** 716,717 ****
Karsten Hopp e057ec
--- 716,719 ----
Karsten Hopp e057ec
  {   /* Add new patch number below this line */
Karsten Hopp e057ec
+ /**/
Karsten Hopp e057ec
+     414,
Karsten Hopp e057ec
  /**/
Karsten Hopp e057ec
Karsten Hopp e057ec
-- 
Karsten Hopp e057ec
No engineer can take a shower without wondering if some sort of Teflon coating
Karsten Hopp e057ec
would make showering unnecessary.
Karsten Hopp e057ec
				(Scott Adams - The Dilbert principle)
Karsten Hopp e057ec
Karsten Hopp e057ec
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e057ec
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e057ec
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp e057ec
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///