mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
functests: Test dumping and loading change list
This commit is contained in:
parent
941ec54aa1
commit
cf004c0d41
@ -148,4 +148,18 @@ describe('ShaDa support code', function()
|
|||||||
eq(testfilename_2, nvim_eval('bufname("%")'))
|
eq(testfilename_2, nvim_eval('bufname("%")'))
|
||||||
eq(2, nvim_current_line())
|
eq(2, nvim_current_line())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('is able to dump and restore change list', function()
|
||||||
|
nvim_command('edit ' .. testfilename)
|
||||||
|
nvim_feed('Gra')
|
||||||
|
nvim_feed('ggrb')
|
||||||
|
nvim_command('qall!')
|
||||||
|
reset()
|
||||||
|
nvim_command('edit ' .. testfilename)
|
||||||
|
-- nvim_command('rviminfo')
|
||||||
|
nvim_feed('Gg;')
|
||||||
|
eq(1, nvim_current_line())
|
||||||
|
nvim_feed('g;')
|
||||||
|
eq(2, nvim_current_line())
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user