mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
functests: Test that history is still accessible after :wshada
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user