aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-26 08:09:47 +0800
committerGitHub <noreply@github.com>2024-07-26 00:09:47 +0000
commit41106168a2acaddc66eea5e3b21072829f052a65 (patch)
tree76a1b25c8f70b0db9773b9902d045099152043bc
parentcd1550818b31d021cd48fd8c0c0b6ac9dada9084 (diff)
downloadrneovim-41106168a2acaddc66eea5e3b21072829f052a65.tar.gz
rneovim-41106168a2acaddc66eea5e3b21072829f052a65.tar.bz2
rneovim-41106168a2acaddc66eea5e3b21072829f052a65.zip
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>
-rw-r--r--test/old/testdir/test_swap.vim2
1 files changed, 1 insertions, 1 deletions
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&