[vim/vim] `vim 'file:///tmp/a%20b'` edits path with extra \ (Issue #19913)

6 views
Skip to first unread message

依云

unread,
Apr 4, 2026, 7:56:22 AMApr 4
to vim/vim, Subscribed
lilydjwg created an issue (vim/vim#19913)

Steps to reproduce

  1. Run vim 'file:///tmp/a%20b'
  2. Vim edits the file/tmp/a\ b.

Since 3e60f03.

Expected behaviour

Vim should edit the file/tmp/a b.

Version of Vim

9.2.280

Environment

Arch Linux, GNOME Terminal / GVim.

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19913@github.com>

Christian Brabandt

unread,
Apr 5, 2026, 12:14:40 PMApr 5
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19913)

I suppose this fixes it?

diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim
index 1520ff969..749d5fcb5 100644
--- a/runtime/pack/dist/opt/netrw/autoload/netrw.vim
+++ b/runtime/pack/dist/opt/netrw/autoload/netrw.vim
@@ -8826,8 +8826,7 @@ endfunction

 "  netrw#RFC2396: converts %xx into characters {{{2
 function netrw#RFC2396(fname)
-    let fname = escape(substitute(a:fname,'%\(\x\x\)','\=printf("%c","0x".submatch(1))','ge')," \t")
-    return fname
+    return substitute(a:fname,'%\(\x\x\)','\=printf("%c","0x".submatch(1))','ge')
 endfunction

 " netrw#UserMaps: supports user-specified maps {{{2


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19913/4189127556@github.com>

依云

unread,
Apr 5, 2026, 10:42:16 PMApr 5
to vim/vim, Subscribed
lilydjwg left a comment (vim/vim#19913)

Yes, it fixes it.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19913/4190069866@github.com>

Christian Brabandt

unread,
Apr 6, 2026, 4:13:15 AMApr 6
to vim/vim, Subscribed

Closed #19913 as completed via ab4ebb6.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19913/issue_event/24218041793@github.com>

Reply all
Reply to author
Forward
0 new messages