aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-26 08:47:37 +0200
committerDaniel Hahler <git@thequod.de>2019-08-26 09:39:00 +0200
commitb2d6a6891e52254700ee2d81a8651c3e50466d84 (patch)
treed8b7939ac0e22274616f8729d58305b92143914d /test
parente3e0574cb3feac4f539383d47f82d0b6e04d8c9b (diff)
downloadrneovim-b2d6a6891e52254700ee2d81a8651c3e50466d84.tar.gz
rneovim-b2d6a6891e52254700ee2d81a8651c3e50466d84.tar.bz2
rneovim-b2d6a6891e52254700ee2d81a8651c3e50466d84.zip
findoption_len: treat viminfo/viminfofile as aliases
Ref: https://github.com/neovim/neovim/pull/10672#issuecomment-524716824
Diffstat (limited to 'test')
-rw-r--r--test/functional/options/defaults_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index 415b526051..490a04186d 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -178,6 +178,12 @@ describe('startup defaults', function()
eq({ f }, eval('v:oldfiles'))
os.remove('Xtest-foo')
rmdir('Xtest-userdata')
+
+ -- Handles viminfo/viminfofile as alias for shada/shadafile.
+ eq('\n shadafile=', eval('execute("set shadafile?")'))
+ eq('\n shadafile=', eval('execute("set viminfofile?")'))
+ eq("\n shada=!,'100,<50,s10,h", eval('execute("set shada?")'))
+ eq("\n shada=!,'100,<50,s10,h", eval('execute("set viminfo?")'))
end)
it("'packpath'", function()