commit 41106168a2acaddc66eea5e3b21072829f052a65
parent cd1550818b31d021cd48fd8c0c0b6ac9dada9084
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 26 Jul 2024 08:09:47 +0800
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 <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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&