robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- Test changelist position after splitting window 2-- Set 'undolevels' to make changelist for sourced file 3 4local n =require ( 'test.functional.testnvim' )() 5local t =require ( 'test.testutil' ) 6 7local describe , it , setup =t . describe , t . it , t . setup 8local clear , feed , insert =n . clear , n . feed , n . insert 9local feed_command , expect =n . feed_command , n . expect 10 11describe ( 'changelist' , function () 12setup ( clear ) 13 14it ( 'is working' , function () 15insert ( '1\n2' ) 16 17feed ( 'Gkylp' ) 18feed_command ( 'set ul=100' ) 19 20feed ( 'Gylp' ) 21feed_command ( 'set ul=100' ) 22 23feed ( 'gg' ) 24feed_command ( 'vsplit' ) 25feed_command ( 'try' , 'normal g;' , 'normal ggVGcpass' , 'catch' , 'normal ggVGcfail' , 'endtry' ) 26 27expect ( 'pass' ) 28end ) 29end )