Mercurial > vim
comparison src/testdir/test_increment.vim @ 7551:f624d7671e0c v7.4.1076
commit https://github.com/vim/vim/commit/6a3c8aff0439c8406082760c54b26e00ff19a90c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 10 14:13:40 2016 +0100
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Jan 2016 14:15:03 +0100 |
parents | 25e3b1a99768 |
children | 5274513d3f54 |
comparison
equal
deleted
inserted
replaced
7550:a38a2da9e741 | 7551:f624d7671e0c |
---|---|
556 exec "norm! \<C-V>$\<C-A>" | 556 exec "norm! \<C-V>$\<C-A>" |
557 call assert_equal(["0b11111111111111111111111111111111"], getline(1, '$')) | 557 call assert_equal(["0b11111111111111111111111111111111"], getline(1, '$')) |
558 call assert_equal([0, 1, 1, 0], getpos('.')) | 558 call assert_equal([0, 1, 1, 0], getpos('.')) |
559 endfunc | 559 endfunc |
560 | 560 |
561 " 27) increment with 'rightreft', if supported | |
562 func Test_visual_increment_27() | |
563 if exists('+rightleft') | |
564 set rightleft | |
565 call setline(1, ["1234 56"]) | |
566 | |
567 exec "norm! $\<C-A>" | |
568 call assert_equal(["1234 57"], getline(1, '$')) | |
569 call assert_equal([0, 1, 7, 0], getpos('.')) | |
570 | |
571 exec "norm! \<C-A>" | |
572 call assert_equal(["1234 58"], getline(1, '$')) | |
573 call assert_equal([0, 1, 7, 0], getpos('.')) | |
574 set norightleft | |
575 endif | |
576 endfunc | |
577 | |
561 " vim: tabstop=2 shiftwidth=2 expandtab | 578 " vim: tabstop=2 shiftwidth=2 expandtab |