aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-08-17 21:30:58 -0600
committerGregory Anders <greg@gpanders.com>2021-08-18 12:17:12 -0600
commitd8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e (patch)
tree051f9f743f3786de6997f7f1f8e88e1ee6d8bcc5 /test/functional/plugin
parentd417e67e595a9eb19797866e91bb80b4fe299a94 (diff)
downloadrneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.tar.gz
rneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.tar.bz2
rneovim-d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e.zip
test: update tests to work with 'hidden'
Diffstat (limited to 'test/functional/plugin')
-rw-r--r--test/functional/plugin/shada_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua
index 5663f248bf..a4d78682ad 100644
--- a/test/functional/plugin/shada_spec.lua
+++ b/test/functional/plugin/shada_spec.lua
@@ -2161,6 +2161,12 @@ describe('plugin/shada.vim', function()
reset()
wshada('\004\000\009\147\000\196\002ab\196\001a')
wshada_tmp('\004\000\009\147\000\196\002ab\196\001b')
+
+ -- Need to set nohidden so that the buffer containing 'fname' is not unloaded
+ -- after loading 'fname_tmp', otherwise the '++opt not supported' test below
+ -- won't work since the BufReadCmd autocmd won't be triggered.
+ nvim_command('set nohidden')
+
nvim_command('edit ' .. fname)
eq({
'History entry with timestamp ' .. epoch .. ':',