From 875d287d4bacffd41bd0d553163da5579ba5e55f Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 10 Jul 2015 20:53:34 +0300 Subject: [PATCH] functests: Test that history is still accessible after :wshada --- test/functional/shada/history_spec.lua | 3 +++ 1 file changed, 3 insertions(+) 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')