Patch 7.4.1259
Problem: No test for what patch 7.3.414 fixed.
Solution: Add a test. (Elias Diem)
Files: src/testdir/test_increment.vim
*** ../vim-7.4.1258/src/testdir/test_increment.vim 2016-01-12
22:20:53.034213670 +0100
--- src/testdir/test_increment.vim 2016-02-04 21:50:31.733003475 +0100
***************
*** 708,711 ****
--- 708,730 ----
call assert_equal([0, 1, 2, 0], getpos('.'))
endfunc
+ " Test what patch 7.3.414 fixed. Ctrl-A on "000" drops the leading zeros.
+ func Test_normal_increment_01()
+ call setline(1, "000")
+ exec "norm! gg0\<C-A>"
+ call assert_equal("001", getline(1))
+
+ call setline(1, "000")
+ exec "norm! gg$\<C-A>"
+ call assert_equal("001", getline(1))
+
+ call setline(1, "001")
+ exec "norm! gg0\<C-A>"
+ call assert_equal("002", getline(1))
+
+ call setline(1, "001")
+ exec "norm! gg$\<C-A>"
+ call assert_equal("002", getline(1))
+ endfunc
+
" vim: tabstop=2 shiftwidth=2 expandtab
*** ../vim-7.4.1258/src/version.c 2016-02-04 21:03:29.594326375 +0100
--- src/version.c 2016-02-04 21:52:17.224035731 +0100
***************
*** 744,745 ****
--- 744,747 ----
{ /* Add new patch number below this line */
+ /**/
+ 1259,
/**/
--
hundred-and-one symptoms of being an internet addict:
138. You develop a liking for cold coffee.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.