From 65bfa86efeeb2ec18ba82fd821ffd4c8f97fcd2b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 24 Jan 2024 07:29:33 +0800 Subject: 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 https://github.com/vim/vim/commit/f96dc8d07f752ddd96d1447d85278a85255a1462 Co-authored-by: Rocco Mao --- test/functional/core/remote_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/core') diff --git a/test/functional/core/remote_spec.lua b/test/functional/core/remote_spec.lua index a48534f51b..caff06f6ab 100644 --- a/test/functional/core/remote_spec.lua +++ b/test/functional/core/remote_spec.lua @@ -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() -- cgit