mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 06:32:33 +00:00
test(shada/marks_spec): load the file with the marks (#24979)
This commit is contained in:
@@ -250,7 +250,7 @@ describe('ShaDa support code', function()
|
|||||||
eq(0, exc_exec('rshada'))
|
eq(0, exc_exec('rshada'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('updates deleted marks', function()
|
it('updates deleted marks with :delmarks', function()
|
||||||
nvim_command('edit ' .. testfilename)
|
nvim_command('edit ' .. testfilename)
|
||||||
|
|
||||||
nvim_command('mark A')
|
nvim_command('mark A')
|
||||||
@@ -259,12 +259,15 @@ describe('ShaDa support code', function()
|
|||||||
-- since it can't be set via :mark
|
-- since it can't be set via :mark
|
||||||
feed('ggifoobar<esc>')
|
feed('ggifoobar<esc>')
|
||||||
nvim_command('wshada')
|
nvim_command('wshada')
|
||||||
nvim_command('normal! `A`a`.')
|
|
||||||
|
|
||||||
|
reset()
|
||||||
|
nvim_command('edit ' .. testfilename)
|
||||||
|
nvim_command('normal! `A`a`.')
|
||||||
nvim_command('delmarks A a .')
|
nvim_command('delmarks A a .')
|
||||||
nvim_command('wshada')
|
nvim_command('wshada')
|
||||||
|
|
||||||
reset()
|
reset()
|
||||||
|
nvim_command('edit ' .. testfilename)
|
||||||
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `A'))
|
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `A'))
|
||||||
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `a'))
|
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `a'))
|
||||||
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `.'))
|
eq('Vim(normal):E20: Mark not set', exc_exec('normal! `.'))
|
||||||
|
|||||||
Reference in New Issue
Block a user