0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1259

Problem:    No test for what patch 7.3.414 fixed.
Solution:   Add a test. (Elias Diem)
This commit is contained in:
Bram Moolenaar
2016-02-04 21:53:33 +01:00
parent a02b321686
commit 3fc3e14282
2 changed files with 21 additions and 0 deletions

View File

@@ -708,4 +708,23 @@ func Test_visual_increment_38()
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

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1259,
/**/
1258,
/**/