-
-
Notifications
You must be signed in to change notification settings - Fork 684
Fix mvim:// not handling paths with spaces #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The file URI was being url decoded and then fed to NSURL. A decoded URI doesn't conform to RFC 2396. NSURL wasn't happy with it. We avoid decoding the url. The rest of queries (both fields and values) are still decoded.
Hi, sorry for the late response, but I think you are missing a line to make this work. Added a comment on it. |
Indeed, I must have missed it while copying the patch over. |
Vim patch 8.2.319 General: - MacVim is now upgraded to Vim 8.2! Fixes: - Fix mvim:// protocol handler to handle spaces in file names. #1002 - Allow the fullscreen toggle on the Touch Bar to be disabled. #997 - Fixed potential infinite recursion draw crash. #985 Targets macOS 10.9+ Script interfaces have compatibility with these versions: - Lua 5.3 - Perl 5.18 - Python2 2.7 - Python3 3.7 - Ruby 2.7
PR macvim-dev#1002 removed decoding of the mvim:// url query. Every query goes through decoding now, no exceptions.
PR macvim-dev#1002 removed decoding of the mvim:// url query. Every query goes through decoding now, no exceptions.
PR macvim-dev#1002 removed decoding of the mvim:// url query. Every query goes through decoding now, no exceptions.
Hi. I used to open files on Macvim just using the cmd+click on a filename on iTerm. When the clickable filename has the line number (example: "~/projects/myproject.txt:10"), Macvim used to open the file on the exact line number. It's broken on snapshot 162. Do you think it's related with this PR? |
@dx7 it'll be fixed in 163, and will be released this week. |
The file URI was being url decoded and then fed to NSURL.
A decoded URI doesn't conform to RFC 2396. NSURL wasn't happy with it.
We avoid decoding the url. The rest of queries (both fields and values)
are still decoded.