robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1local n =require ( 'test.functional.testnvim' )() 2local t =require ( 'test.testutil' ) 3 4local describe , it , before_each =t . describe , t . it , t . before_each 5local assert_alive =n . assert_alive 6local clear =n . clear 7local feed =n . feed 8 9describe ( "'tabstop' option" , function () 10before_each ( function () 11clear () 12end ) 13 14-- NOTE: Setting 'tabstop' to a big number reproduces crash #2838. 15-- Disallowing big 'tabstop' would not fix #2838, only hide it. 16it ( 'tabstop=<big-number> does not crash #2838' , function () 17-- Insert a <Tab> character for 'tabstop' to work with. 18feed ( 'i<Tab><Esc>' ) 19-- Set 'tabstop' to a very high value. 20-- Use feed(), not command(), to provoke crash. 21feed ( ':set tabstop=3000000000<CR>' ) 22assert_alive () 23end ) 24end )