functests: Test that history is still accessible after :wshada

This commit is contained in:
ZyX 2015-07-10 20:53:34 +03:00
parent 6f6497f5e0
commit 875d287d4b

View File

@ -66,6 +66,9 @@ describe('ShaDa support code', function()
nvim_feed(':" Test\n')
nvim_feed(':" Test 2\n')
nvim_command('wshada')
-- Regression test: :wshada should not alter or free history.
eq('" Test 2', nvim_eval('histget(":", -1)'))
eq('" Test', nvim_eval('histget(":", -2)'))
reset()
nvim_command('set shada=\'0')
nvim_command('rshada')