diff options
author | Abdelhakeem Osama <abdelhakeem.osama@hotmail.com> | 2019-04-02 00:50:28 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-02 00:50:28 +0200 |
commit | 35362495c965554f45634bcde3c4ce6d5eca52aa (patch) | |
tree | a5ab5056c94fec9e1585f33840b3c79a3209f204 /test/functional/shada | |
parent | a011f8a3211cfc3369437d8686c6999d491ba290 (diff) | |
download | rneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.tar.gz rneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.tar.bz2 rneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.zip |
jumplist: avoid extra tail entry #9805
fixes #9775
Diffstat (limited to 'test/functional/shada')
-rw-r--r-- | test/functional/shada/marks_spec.lua | 6 | ||||
-rw-r--r-- | test/functional/shada/merging_spec.lua | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua index c2f6351e00..e6450e68b3 100644 --- a/test/functional/shada/marks_spec.lua +++ b/test/functional/shada/marks_spec.lua @@ -189,9 +189,6 @@ describe('ShaDa support code', function() eq(1, nvim_current_line()) nvim_command('execute "normal! \\<C-o>"') eq(testfilename, funcs.bufname('%')) - eq(1, nvim_current_line()) - nvim_command('execute "normal! \\<C-o>"') - eq(testfilename, funcs.bufname('%')) eq(2, nvim_current_line()) nvim_command('execute "normal! \\<C-o>"') eq(testfilename_2, funcs.bufname('%')) @@ -199,6 +196,9 @@ describe('ShaDa support code', function() nvim_command('execute "normal! \\<C-o>"') eq(testfilename_2, funcs.bufname('%')) eq(2, nvim_current_line()) + nvim_command('execute "normal! \\<C-o>"') + eq(testfilename_2, funcs.bufname('%')) + eq(2, nvim_current_line()) end) it('is able to dump and restore change list', function() diff --git a/test/functional/shada/merging_spec.lua b/test/functional/shada/merging_spec.lua index a628baff53..22f2b8348d 100644 --- a/test/functional/shada/merging_spec.lua +++ b/test/functional/shada/merging_spec.lua @@ -912,12 +912,11 @@ describe('ShaDa jumps support code', function() eq('', curbufmeths.get_name()) eq('\n' .. ' jump line col file/text\n' - .. ' 6 2 0 ' .. mock_file_path .. 'c\n' - .. ' 5 2 0 ' .. mock_file_path .. 'd\n' - .. ' 4 3 0 ' .. mock_file_path .. 'd\n' - .. ' 3 2 0 ' .. mock_file_path .. 'e\n' - .. ' 2 2 0 ' .. mock_file_path .. 'f\n' - .. ' 1 1 0 \n' + .. ' 5 2 0 ' .. mock_file_path .. 'c\n' + .. ' 4 2 0 ' .. mock_file_path .. 'd\n' + .. ' 3 3 0 ' .. mock_file_path .. 'd\n' + .. ' 2 2 0 ' .. mock_file_path .. 'e\n' + .. ' 1 2 0 ' .. mock_file_path .. 'f\n' .. '>', redir_exec('jumps')) end) |