mirror of
https://github.com/neovim/neovim.git
synced 2026-02-04 11:04:30 +00:00
vim-patch:9.1.0046: :drop does not re-use empty buffer (#27165)
Problem: :drop does not re-use empty buffer
(Rocco Mao)
Solution: Make :drop re-use an empty buffer
(Rocco Mao)
fixes: vim/vim#13851
closes: vim/vim#13881
f96dc8d07f
Co-authored-by: Rocco Mao <dapeng.mao@qq.com>
This commit is contained in:
@@ -81,7 +81,7 @@ describe('Remote', function()
|
||||
it('edit a single file', function()
|
||||
eq({ '', '' }, run_remote('--remote', fname))
|
||||
expect(contents)
|
||||
eq(2, #fn.getbufinfo())
|
||||
eq(1, #fn.getbufinfo())
|
||||
end)
|
||||
|
||||
it('tab edit a single file with a non-changed buffer', function()
|
||||
@@ -102,7 +102,7 @@ describe('Remote', function()
|
||||
expect(contents)
|
||||
command('next')
|
||||
expect(other_contents)
|
||||
eq(3, #fn.getbufinfo())
|
||||
eq(2, #fn.getbufinfo())
|
||||
end)
|
||||
|
||||
it('send keys', function()
|
||||
|
||||
Reference in New Issue
Block a user