From 41106168a2acaddc66eea5e3b21072829f052a65 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 26 Jul 2024 08:09:47 +0800 Subject: [PATCH] vim-patch:8.2.3543: swapname has double slash when 'directory' ends in it (#29862) Problem: Swapname has double slash when 'directory' ends in double slash. (Shane Smith) Solution: Remove the superfluous slash. (closes vim/vim#8876) https://github.com/vim/vim/commit/8b0e62c93b6dad5ec5b2c7558d4f7b78c46216d2 The test got lost in #29758... Co-authored-by: Bram Moolenaar --- test/old/testdir/test_swap.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/old/testdir/test_swap.vim b/test/old/testdir/test_swap.vim index 7c84c47337..8a1b3ce133 100644 --- a/test/old/testdir/test_swap.vim +++ b/test/old/testdir/test_swap.vim @@ -409,7 +409,7 @@ func Test_swap_symlink() " Check that this also works when 'directory' ends with '//' edit Xtestlink - call assert_match('Xtestfile\.swp$', s:swapname()) + call assert_match('Xswapdir[/\\]%.*testdir%Xtestfile\.swp$', s:swapname()) bwipe! set dir&