neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit bf7d20bb1d882938fc37dd333e074bd80dc4c605
parent 99d16af86a027af1fa1df87930667b46b6ad5db0
Author: Jaehwang Jung <tomtomjhj@gmail.com>
Date:   Sat, 13 Sep 2025 00:36:36 +0900

vim-patch:2328a39: 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: vim/vim#16252
closes: vim/vim#16265

https://github.com/vim/vim/commit/2328a39a54fbd75576769193d7ff1ed2769e2ff9

Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>

Diffstat:
Mruntime/pack/dist/opt/netrw/autoload/netrw.vim | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -5145,8 +5145,7 @@ fun! netrw#BrowseX(fname,remote) endif endif - " although shellescape(..., 1) is used in netrw#Open(), it's insufficient - call netrw#Open(escape(fname, '#%')) + call netrw#Open(fname) " cleanup: remove temporary file, " delete current buffer if success with handler,