aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/marks_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/shada/marks_spec.lua')
-rw-r--r--test/functional/shada/marks_spec.lua26
1 files changed, 6 insertions, 20 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index 8b9e70045c..dc7a710143 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -118,28 +118,14 @@ describe('ShaDa support code', function()
nvim_command('edit ' .. testfilename)
nvim_feed('G')
nvim_feed('gg')
- -- nvim_command('redir! >/tmp/jumps.last | jumps | redir END')
- -- nvim_command('wshada /tmp/foo')
+ nvim_command('enew')
+ nvim_feed('gg')
+ nvim_command('redir => g:jumps | jumps | redir END')
+ local saved = nvim_eval('g:jumps')
nvim_command('qall')
reset()
- nvim_command('redraw')
- -- nvim_command('redir! >/tmp/jumps.init | jumps | redir END')
- nvim_command('edit ' .. testfilename)
- -- nvim_command('redir! >/tmp/jumps | jumps | redir END')
- eq(testfilename, nvim_eval('bufname("%")'))
- eq(1, nvim_current_line())
- nvim_command('execute "normal! \\<C-o>"')
- eq(testfilename, nvim_eval('bufname("%")'))
- eq(1, nvim_current_line())
- nvim_command('execute "normal! \\<C-o>"')
- eq(testfilename, nvim_eval('bufname("%")'))
- eq(2, nvim_current_line())
- nvim_command('execute "normal! \\<C-o>"')
- eq(testfilename_2, nvim_eval('bufname("%")'))
- eq(1, nvim_current_line())
- nvim_command('execute "normal! \\<C-o>"')
- eq(testfilename_2, nvim_eval('bufname("%")'))
- eq(2, nvim_current_line())
+ nvim_command('redir => g:jumps | jumps | redir END')
+ eq(saved, nvim_eval('g:jumps'))
end)
it('is able to dump and restore jump list with different times (slow!)',