aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/marks_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-26 14:01:49 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-10-26 14:01:49 +0200
commit90bf31c7421f6bc32703dd8d8a19cd29f06cc63d (patch)
treef55536104ad01303144236dfa31a77af17427086 /test/functional/shada/marks_spec.lua
parente350902b7de17583e3a94fa92f736aded0726774 (diff)
parent26b90e95e7bfa8bec29d33642c80dd5c55ff88a7 (diff)
downloadrneovim-90bf31c7421f6bc32703dd8d8a19cd29f06cc63d.tar.gz
rneovim-90bf31c7421f6bc32703dd8d8a19cd29f06cc63d.tar.bz2
rneovim-90bf31c7421f6bc32703dd8d8a19cd29f06cc63d.zip
Merge #5500
Closes #5246
Diffstat (limited to 'test/functional/shada/marks_spec.lua')
-rw-r--r--test/functional/shada/marks_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index 646b0b692e..b743c3a4b7 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -102,6 +102,18 @@ describe('ShaDa support code', function()
eq(2, nvim_current_line())
end)
+ it('is able to dump and read back mark " from a closed tab', function()
+ nvim_command('edit ' .. testfilename)
+ nvim_command('edit ' .. testfilename_2)
+ nvim_command('2')
+ nvim_command('q!')
+ nvim_command('qall')
+ reset()
+ nvim_command('edit ' .. testfilename_2)
+ nvim_command('normal! `"')
+ eq(2, nvim_current_line())
+ end)
+
it('is able to populate v:oldfiles', function()
nvim_command('edit ' .. testfilename)
local tf_full = curbufmeths.get_name()