diff options
author | Pavel Platto <hinidu@gmail.com> | 2015-01-19 22:34:23 +0200 |
---|---|---|
committer | Pavel Platto <hinidu@gmail.com> | 2015-01-19 23:39:01 +0200 |
commit | 1d5222985ccad4cd31c4b7498810ff2968dd33a2 (patch) | |
tree | 4b8b0d7fe267d3a934e815ab5dc6130c941733f4 /test | |
parent | 617c00bd49c2bdb05c8ef31f94e206ba3f80f694 (diff) | |
download | rneovim-1d5222985ccad4cd31c4b7498810ff2968dd33a2.tar.gz rneovim-1d5222985ccad4cd31c4b7498810ff2968dd33a2.tar.bz2 rneovim-1d5222985ccad4cd31c4b7498810ff2968dd33a2.zip |
vim-patch:7.4.492
Problem: In Insert mode, after inserting a newline that inserts a comment
leader, CTRL-O moves to the right. (ZyX) Issue 57.
Solution: Correct the condition for moving the cursor back to the NUL.
(Christian Brabandt)
https://code.google.com/p/vim/source/detail?r=v7-4-492
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/004_bufenter_with_modelines_spec.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/legacy/004_bufenter_with_modelines_spec.lua b/test/functional/legacy/004_bufenter_with_modelines_spec.lua index 6f009b52dd..34e702b798 100644 --- a/test/functional/legacy/004_bufenter_with_modelines_spec.lua +++ b/test/functional/legacy/004_bufenter_with_modelines_spec.lua @@ -46,6 +46,12 @@ describe('BufEnter with modelines', function() -- Include Xxx in the current file feed('G:r Xxx<CR>') + -- Vim issue #57 do not move cursor on <c-o> when autoindent is set + execute('set fo+=r') + feed('G') + feed('o# abcdef<Esc>2hi<CR><c-o>d0<Esc>') + feed('o# abcdef<Esc>2hi<c-o>d0<Esc>') + expect([[ startstart start of test file Xxx @@ -63,7 +69,10 @@ describe('BufEnter with modelines', function() this is a test this is a test this should be in column 1 - end of test file Xxx]]) + end of test file Xxx + # abc + def + def]]) end) teardown(function() |