diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-08-19 06:13:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-19 06:13:08 -0700 |
commit | 19a0d90bb3479bb6516be229f6001646329d842f (patch) | |
tree | 9c4aa1f2c91d71c10cc42e9e3eed04627cc97482 /test/functional/plugin/shada_spec.lua | |
parent | 7bff642169438a66557b65d6aba80536eaf570fa (diff) | |
parent | d8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e (diff) | |
download | rneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.gz rneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.bz2 rneovim-19a0d90bb3479bb6516be229f6001646329d842f.zip |
Merge #15410 defaults: 'hidden', 'nojoinspaces'
ref #6289
Diffstat (limited to 'test/functional/plugin/shada_spec.lua')
-rw-r--r-- | test/functional/plugin/shada_spec.lua | 6 |
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 .. ':', |