diff options
| author | watiko <service@mail.watiko.net> | 2016-01-15 17:51:56 +0900 |
|---|---|---|
| committer | watiko <service@mail.watiko.net> | 2016-02-01 03:47:09 +0900 |
| commit | 594e3a64de2f2a0aac2dfdebbf5881ee3403c275 (patch) | |
| tree | b79493e27321a9b07f96ce549ca6e455dcf509b1 /src/nvim/testdir | |
| parent | 63560c9c89a85a5e034e39b785666776371c1a7e (diff) | |
| download | rneovim-594e3a64de2f2a0aac2dfdebbf5881ee3403c275.tar.gz rneovim-594e3a64de2f2a0aac2dfdebbf5881ee3403c275.tar.bz2 rneovim-594e3a64de2f2a0aac2dfdebbf5881ee3403c275.zip | |
vim-patch:7.4.1076
Problem: CTRL-A does not work well in right-left mode.
Solution: Remove reversing the line, add a test. (Hirohito Higashi)
https://github.com/vim/vim/commit/6a3c8aff0439c8406082760c54b26e00ff19a90c
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_increment.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_increment.vim b/src/nvim/testdir/test_increment.vim index ab75c1c6eb..277f71d8a4 100644 --- a/src/nvim/testdir/test_increment.vim +++ b/src/nvim/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 |