diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-10 14:13:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-10 14:13:40 +0100 |
commit | 6a3c8aff0439c8406082760c54b26e00ff19a90c (patch) | |
tree | 86ebbe5a6b694be2388a0cece726e85628d572c2 /src/testdir/test_increment.vim | |
parent | 05fe017c1ac0503b706dad695097572fde01ab0b (diff) | |
download | vim-git-6a3c8aff0439c8406082760c54b26e00ff19a90c.tar.gz |
patch 7.4.1076v7.4.1076
Problem: CTRL-A does not work well in right-left mode.
Solution: Remove reversing the line, add a test. (Hirohito Higashi)
Diffstat (limited to 'src/testdir/test_increment.vim')
-rw-r--r-- | src/testdir/test_increment.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_increment.vim b/src/testdir/test_increment.vim index ab75c1c6e..277f71d8a 100644 --- a/src/testdir/test_increment.vim +++ b/src/testdir/test_increment.vim @@ -558,4 +558,21 @@ func Test_visual_increment_26() call assert_equal([0, 1, 1, 0], getpos('.')) endfunc +" 27) increment with 'rightreft', if supported +func Test_visual_increment_27() + if exists('+rightleft') + set rightleft + call setline(1, ["1234 56"]) + + exec "norm! $\<C-A>" + call assert_equal(["1234 57"], getline(1, '$')) + call assert_equal([0, 1, 7, 0], getpos('.')) + + exec "norm! \<C-A>" + call assert_equal(["1234 58"], getline(1, '$')) + call assert_equal([0, 1, 7, 0], getpos('.')) + set norightleft + endif +endfunc + " vim: tabstop=2 shiftwidth=2 expandtab |