robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- Test for t movement command and 'cpo-;' setting 2 3local n =require ( 'test.functional.testnvim' )() 4local t =require ( 'test.testutil' ) 5 6local describe , it , setup =t . describe , t . it , t . setup 7local clear , feed , insert =n . clear , n . feed , n . insert 8local feed_command , expect =n . feed_command , n . expect 9 10describe ( 'coptions' , function () 11setup ( clear ) 12 13-- luacheck: ignore 613 (Trailing whitespace in a string) 14it ( 'is working' , function () 15insert ( [[ 16aaa two three four 17zzz 18yyy 19bbb yee yoo four 20ccc two three four 21ddd yee yoo four]] ) 22 23feed_command ( 'set cpo-=;' ) 24 25feed ( 'gg0tt;D' ) 26feed ( 'j0fz;D' ) 27feed ( 'j$Fy;D' ) 28feed ( 'j$Ty;D' ) 29 30feed_command ( 'set cpo+=;' ) 31 32feed ( 'j0tt;;D' ) 33feed ( 'j$Ty;;D' ) 34 35expect ( [[ 36aaa two 37z 38y 39bbb y 40ccc 41ddd yee y]] ) 42end ) 43end )