aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/marks_spec.lua
diff options
context:
space:
mode:
authorAbdelhakeem Osama <abdelhakeem.osama@hotmail.com>2019-04-02 00:50:28 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-04-02 00:50:28 +0200
commit35362495c965554f45634bcde3c4ce6d5eca52aa (patch)
treea5ab5056c94fec9e1585f33840b3c79a3209f204 /test/functional/shada/marks_spec.lua
parenta011f8a3211cfc3369437d8686c6999d491ba290 (diff)
downloadrneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.tar.gz
rneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.tar.bz2
rneovim-35362495c965554f45634bcde3c4ce6d5eca52aa.zip
jumplist: avoid extra tail entry #9805
fixes #9775
Diffstat (limited to 'test/functional/shada/marks_spec.lua')
-rw-r--r--test/functional/shada/marks_spec.lua6
1 files changed, 3 insertions, 3 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()