summaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-23 08:56:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-04-23 12:51:11 +0800
commitb33dc7fe45597ca5ab105a3b0b207023261e6153 (patch)
tree00502917d06f6f5d44ac641b2829e78cd5b86da8 /test
parent06a47ac994e056fd38050c98881760ce6875a5c7 (diff)
vim-patch:9.2.0302: runtime(netrw): RFC2396 decoding double escaping spaces
Problem: runtime(netrw): RFC2396 decoding double escaping spaces (lilydjwg, after 3e60f03d942d6bb0f7eac) Solution: Remove escape() call, since we are using fnameescape() anyhow fixes: vim/vim#19913 https://github.com/vim/vim/commit/ab4ebb62ee2cbe5e25fb1746ac5dbe63a9d50260 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_plugin_netrw.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_plugin_netrw.vim b/test/old/testdir/test_plugin_netrw.vim
index ddd6b23cb0..c33b3c307e 100644
--- a/test/old/testdir/test_plugin_netrw.vim
+++ b/test/old/testdir/test_plugin_netrw.vim
@@ -611,4 +611,9 @@ func Test_netrw_FileUrlEdit_pipe_injection()
call assert_false(filereadable(fname), 'Command injection via pipe in file URL')
endfunc
+func Test_netrw_RFC2396()
+ let fname = 'a%20b'
+ call assert_equal('a b', netrw#RFC2396(fname))
+endfunc
+
" vim:ts=8 sts=2 sw=2 et