comparison src/testdir/test_increment.vim @ 8690:6a1becf4f282 v7.4.1634

commit https://github.com/vim/vim/commit/8e08125d3a9afd0b16cd84454ae9ddad0abaaab0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 21 23:13:32 2016 +0100 patch 7.4.1634 Problem: Vertical movement after CTRL-A ends up in the wrong column. (Urtica Dioica) Solution: Set curswant when appropriate. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Mon, 21 Mar 2016 23:15:04 +0100
parents 2a34dd90beba
children f089eb0a5fa4
comparison
equal deleted inserted replaced
8689:63d1d06fb303 8690:6a1becf4f282
725 call setline(1, "001") 725 call setline(1, "001")
726 exec "norm! gg$\<C-A>" 726 exec "norm! gg$\<C-A>"
727 call assert_equal("002", getline(1)) 727 call assert_equal("002", getline(1))
728 endfunc 728 endfunc
729 729
730 " Test a regression of patch 7.4.1087 fixed.
731 func Test_normal_increment_02()
732 call setline(1, ["hello 10", "world"])
733 exec "norm! ggl\<C-A>jx"
734 call assert_equal(["hello 11", "worl"], getline(1, '$'))
735 call assert_equal([0, 2, 4, 0], getpos('.'))
736 endfunc
737
738
730 " vim: tabstop=2 shiftwidth=2 expandtab 739 " vim: tabstop=2 shiftwidth=2 expandtab