aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-07-10 20:53:34 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:10 +0300
commit875d287d4bacffd41bd0d553163da5579ba5e55f (patch)
treedebf3567e8d14f24ff3c55c7b6105a6fdc2aa09d
parent6f6497f5e00292adb4df12fea9cf13647e0edda3 (diff)
downloadrneovim-875d287d4bacffd41bd0d553163da5579ba5e55f.tar.gz
rneovim-875d287d4bacffd41bd0d553163da5579ba5e55f.tar.bz2
rneovim-875d287d4bacffd41bd0d553163da5579ba5e55f.zip
functests: Test that history is still accessible after :wshada
-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')