mirror of
https://github.com/neovim/neovim.git
synced 2025-11-22 18:16:32 +00:00
Merge pull request #5760 from jamessan/shada-percent-count
shada: Respect the optional buffer count for shada-%
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user