aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/shada/marks_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index a6518ccbf9..25362b406b 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -171,9 +171,15 @@ describe('ShaDa support code', function()
reset()
nvim_command('edit ' .. testfilename)
-- nvim_command('rviminfo')
+ -- nvim_command('redir! >/tmp/changes | changes | redir END')
nvim_feed('Gg;')
+ -- Note: without “sync” “commands” test has good changes to fail for unknown
+ -- reason (in first eq expected 1 is compared with 2). Any command inserted
+ -- causes this to work properly.
+ nvim_command('" sync')
eq(1, nvim_current_line())
nvim_feed('g;')
+ nvim_command('" sync 2')
eq(2, nvim_current_line())
end)
end)