-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
neovim/neovim
#35736Closed
Copy link
Labels
Description
Steps to reproduce
- Write some URL-encoded URL such as
https://www.example.com/#:~:text=%E3%81%82
in some buffer. - Put cursor on the URL, and run
gx
shortcut (=NetrwBrowseX
) in normal mode. - It tries to open the target URL in the web browser, but the opening page URL is corrupted
likehttps://www.example.com/#:~:text=/%E3/%81/%82
.
Here it is calling extra escape()
that causes this.
Due to this, it would fails with paths including #
or %
, the characters escaped here.
The comment for it says they've added the escape()
since shellescape(..., 1)
in netrw#Open()
is insufficient.
Is the escape()
really required now?
Expected behaviour
It opens the correct URL.
Version of Vim
9.1.866
Environment
-
Operating system: Windows 11 Pro 64bit 24H2 (Version 10.0.26100.2605)
- MSYS2 (msys2-runtime 3.5.4-8)
-
Terminal: mintty '3.7.6' 2024-09-24_05:10 (x86_64-pc-msys)
- Value of
$TERM
: xterm-256color - Shell: GNU bash, version 5.2.37(1)-release (x86_64-pc-msys)
- Value of
-
Vim
g:netrw_browsex_viewer
value:start
-
Browser: Google Chrome v131.0.6778.140
Logs and stack traces
No response
Shougo