Skip to content

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

Merged
merged 2 commits into from
Mar 2, 2020

Conversation

frarees
Copy link
Contributor

@frarees frarees commented Feb 2, 2020

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.

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.
@ychin
Copy link
Member

ychin commented Mar 1, 2020

Hi, sorry for the late response, but I think you are missing a line to make this work. Added a comment on it.

@frarees
Copy link
Contributor Author

frarees commented Mar 1, 2020

Indeed, I must have missed it while copying the patch over.

@ychin ychin merged commit b93473f into macvim-dev:master Mar 2, 2020
@frarees frarees deleted the handleurl_fix branch March 2, 2020 13:10
@ychin ychin added this to the snapshot-162 milestone Mar 3, 2020
ychin added a commit that referenced this pull request Mar 3, 2020
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
frarees added a commit to frarees/macvim that referenced this pull request Mar 11, 2020
PR macvim-dev#1002 removed decoding of the mvim:// url query.
Every query goes through decoding now, no exceptions.
@frarees frarees mentioned this pull request Mar 11, 2020
frarees added a commit to frarees/macvim that referenced this pull request Mar 12, 2020
PR macvim-dev#1002 removed decoding of the mvim:// url query.
Every query goes through decoding now, no exceptions.
frarees added a commit to frarees/macvim that referenced this pull request Mar 12, 2020
PR macvim-dev#1002 removed decoding of the mvim:// url query.
Every query goes through decoding now, no exceptions.
@dx7
Copy link

dx7 commented Apr 3, 2020

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?

@frarees
Copy link
Contributor Author

frarees commented Apr 3, 2020

@dx7 if it doesn't happen on 161 for you, then most likely that's the issue. 163 contains a fix (see #1020)

@ychin
Copy link
Member

ychin commented Apr 7, 2020

@dx7 it'll be fixed in 163, and will be released this week.

@dx7
Copy link

dx7 commented Apr 7, 2020

sounds good. thank you @frarees @ychin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants