aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/shada/history_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/shada/history_spec.lua b/test/functional/shada/history_spec.lua
index c4d39bd547..0c39b65ee1 100644
--- a/test/functional/shada/history_spec.lua
+++ b/test/functional/shada/history_spec.lua
@@ -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')