diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-07 23:15:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-07 23:15:50 +0100 |
commit | d2f16d534f0cfdcc7b59e80dbf92cf43f956f5ff (patch) | |
tree | f492d6634b8224bbbe79b12a85e16198e9906e8b /test | |
parent | 50af8e0255c0271ff411a6af54b664d69be227e5 (diff) | |
parent | a1cce83d3c7a0b3b9f63db837db521e0b4e6a31f (diff) | |
download | rneovim-d2f16d534f0cfdcc7b59e80dbf92cf43f956f5ff.tar.gz rneovim-d2f16d534f0cfdcc7b59e80dbf92cf43f956f5ff.tar.bz2 rneovim-d2f16d534f0cfdcc7b59e80dbf92cf43f956f5ff.zip |
Merge #5079 from ZyX-I/shada-save-current-pos
shada: Save current cursor position before saving jumps
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/shada/marks_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua index b7c0f61f57..36d2c665d7 100644 --- a/test/functional/shada/marks_spec.lua +++ b/test/functional/shada/marks_spec.lua @@ -153,6 +153,19 @@ describe('ShaDa support code', function() eq(saved, redir_exec('jumps')) end) + it('when dumping jump list also dumps current position', function() + nvim_command('edit ' .. testfilename) + nvim_command('normal! G') + nvim_command('split ' .. testfilename_2) + nvim_command('normal! G') + nvim_command('wshada') + nvim_command('quit') + nvim_command('rshada') + nvim_command('normal! \15') -- <C-o> + eq(testfilename_2, funcs.bufname('%')) + eq({2, 0}, curwinmeths.get_cursor()) + end) + it('is able to dump and restore jump list with different times (slow!)', function() nvim_command('edit ' .. testfilename_2) |