aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/shada/marks_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index b853513317..f1a112bfef 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -148,4 +148,18 @@ describe('ShaDa support code', function()
eq(testfilename_2, nvim_eval('bufname("%")'))
eq(2, nvim_current_line())
end)
+
+ it('is able to dump and restore change list', function()
+ nvim_command('edit ' .. testfilename)
+ nvim_feed('Gra')
+ nvim_feed('ggrb')
+ nvim_command('qall!')
+ reset()
+ nvim_command('edit ' .. testfilename)
+ -- nvim_command('rviminfo')
+ nvim_feed('Gg;')
+ eq(1, nvim_current_line())
+ nvim_feed('g;')
+ eq(2, nvim_current_line())
+ end)
end)