]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(netrw): do not double escape Vim special characters
authorKonfekt <Konfekt@users.noreply.github.com>
Fri, 20 Dec 2024 18:41:02 +0000 (19:41 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Dec 2024 18:41:02 +0000 (19:41 +0100)
commit2328a39a54fbd75576769193d7ff1ed2769e2ff9
tree4a4663af6825f94f0521a95f938a2335bb517ec0
parentfb27cf9cb17d756dc3d983a7d1739bbf75b2d70e
runtime(netrw): do not double escape Vim special characters

This double escaping was likely introduced because it was the only way
to make :Open work with hashes/percent signs despite shellescape(..., 1)
supposedly taking care of it, but then breaks the gx mapping
on MSYS2 as reported at [0]

Since special characters in the URL following :Open can be escaped,
whereas gx simply breaks and is more common, no longer double escape

[0]: https://github.com/vim/vim/issues/16252

fixes: #16252
closes: #16265

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/netrw.vim