diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-24 07:29:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 07:29:33 +0800 |
commit | 65bfa86efeeb2ec18ba82fd821ffd4c8f97fcd2b (patch) | |
tree | bf5999ea603cd484c19148687a0dd83c0d8fecc1 /test/functional/core/remote_spec.lua | |
parent | 6cbfe454542ff498a84b22f0aff1bf215e883485 (diff) | |
download | rneovim-65bfa86efeeb2ec18ba82fd821ffd4c8f97fcd2b.tar.gz rneovim-65bfa86efeeb2ec18ba82fd821ffd4c8f97fcd2b.tar.bz2 rneovim-65bfa86efeeb2ec18ba82fd821ffd4c8f97fcd2b.zip |
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 <dapeng.mao@qq.com>
Diffstat (limited to 'test/functional/core/remote_spec.lua')
-rw-r--r-- | test/functional/core/remote_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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() |