robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1local t =require ( 'test.testutil' ) 2local n =require ( 'test.functional.testnvim' )() 3 4local describe , it , before_each =t . describe , t . it , t . before_each 5local clear =n . clear 6local exec =n . exec 7local assert_alive =n . assert_alive 8local fn =n . fn 9local eq =t . eq 10 11describe ( 'registers' , function () 12before_each ( clear ) 13 14-- oldtest: Test_register_cursor_column_negative() 15it ( 'no negative column when pasting' , function () 16exec ( [[ 17f XREGISTER 18call setline(1, 'abcdef a') 19call setreg("a", "\n", 'c') 20call cursor(1, 7) 21call feedkeys("i\<C-R>\<C-P>azyx$#\<esc>", 't') 22]] ) 23assert_alive () 24eq ( 'XREGISTER' , fn . bufname ()) 25end ) 26end )