Merge pull request #5760 from jamessan/shada-percent-count

shada: Respect the optional buffer count for shada-%
This commit is contained in:
James McCoy
2016-12-13 22:35:25 -05:00
committed by GitHub
2 changed files with 17 additions and 1 deletions

View File

@@ -89,4 +89,16 @@ describe('ShaDa support code', function()
eq(1, funcs.bufnr('$'))
eq('', funcs.bufname(1))
end)
it('restores 1 buffer with %1 in &shada, #5759', function()
set_additional_cmd('set shada+=%1')
reset()
nvim_command('edit ' .. testfilename)
nvim_command('edit ' .. testfilename_2)
nvim_command('qall')
reset()
eq(2, funcs.bufnr('$'))
eq('', funcs.bufname(1))
eq(testfilename, funcs.bufname(2))
end)
end)