vim/fixed-autocmd_BufWinLeave_with_vsp.patch

36 lines
930 B
Diff
Raw Permalink Normal View History

2025-04-25 16:45:32 +08:00
From 919addfdcd0ef3f7b662dc9e32beb1c4da3d77bf Mon Sep 17 00:00:00 2001
From: wjiang <app@cameyan.com>
Date: Thu, 3 Apr 2025 14:07:33 +0800
Subject: [PATCH] fix Test_autocmd_BufWinLeave_with_vsp
---
src/testdir/test_autocmd.vim | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index cea5e41..580a14d 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -4325,8 +4325,6 @@ func Test_autocmd_BufWinLeave_with_vsp()
let dummy = 'XXXDummy.txt'
call writefile([], fname)
call writefile([], dummy)
- defer delete(fname)
- defer delete(dummy)
exe "e " fname
vsp
augroup testing
@@ -4335,6 +4333,9 @@ func Test_autocmd_BufWinLeave_with_vsp()
bw
call CleanUpTestAuGroup()
exe "bw! " .. dummy
+
+ call delete(fname)
+ call delete(dummy)
endfunc
" vim: shiftwidth=2 sts=2 expandtab
--
2.33.0