summaryrefslogtreecommitdiff
path: root/src/testdir/test_increment.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-21 23:13:32 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-21 23:13:32 +0100
commit8e08125d3a9afd0b16cd84454ae9ddad0abaaab0 (patch)
treeec7f6dfbbe8787c569b8b1a8e18629a772b3154c /src/testdir/test_increment.vim
parentb763eba7ae3540cd879f7c29882a29308f9688db (diff)
downloadvim-git-8e08125d3a9afd0b16cd84454ae9ddad0abaaab0.tar.gz
patch 7.4.1634v7.4.1634
Problem: Vertical movement after CTRL-A ends up in the wrong column. (Urtica Dioica) Solution: Set curswant when appropriate. (Hirohito Higashi)
Diffstat (limited to 'src/testdir/test_increment.vim')
-rw-r--r--src/testdir/test_increment.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_increment.vim b/src/testdir/test_increment.vim
index 275969e15..a6578cf0c 100644
--- a/src/testdir/test_increment.vim
+++ b/src/testdir/test_increment.vim
@@ -727,4 +727,13 @@ func Test_normal_increment_01()
call assert_equal("002", getline(1))
endfunc
+" Test a regression of patch 7.4.1087 fixed.
+func Test_normal_increment_02()
+ call setline(1, ["hello 10", "world"])
+ exec "norm! ggl\<C-A>jx"
+ call assert_equal(["hello 11", "worl"], getline(1, '$'))
+ call assert_equal([0, 2, 4, 0], getpos('.'))
+endfunc
+
+
" vim: tabstop=2 shiftwidth=2 expandtab