020_blockwise_visual_spec.lua (978B)
1 -- Tests Blockwise Visual when there are TABs before the text. 2 -- First test for undo working properly when executing commands from a register. 3 -- Also test this in an empty buffer. 4 5 local n = require('test.functional.testnvim')() 6 7 local clear, feed, insert = n.clear, n.feed, n.insert 8 local feed_command, expect = n.feed_command, n.expect 9 10 describe('blockwise visual', function() 11 setup(clear) 12 13 it('is working', function() 14 insert([[ 15 123456 16 234567 17 345678 18 19 test text test tex start here 20 some text 21 test text 22 test text 23 24 x jAy kdd 25 Ox jAy kdd]]) 26 27 feed(":let @a = 'Ox<C-v><Esc>jAy<C-v><Esc>kdd'<cr>") 28 feed('G0k@au') 29 feed_command('new') 30 feed('@auY') 31 feed_command('quit') 32 feed('GP') 33 feed_command('/start here') 34 feed('"by$<C-v>jjlld') 35 feed_command('/456') 36 feed('<C-v>jj"bP') 37 feed_command('$-3,$d') 38 39 expect([[ 40 123start here56 41 234start here67 42 345start here78 43 44 test text test tex rt here 45 somext 46 tesext 47 test text]]) 48 end) 49 end)