mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Fix URL scheme handler to accept paths with spaces
This commit is contained in:
committed by
Bjorn Winckler
parent
1eee089039
commit
3d348a439e
@@ -1616,6 +1616,9 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
|
||||
{
|
||||
NSString *urlString = [[event paramDescriptorForKeyword:keyDirectObject]
|
||||
stringValue];
|
||||
// NOTE: URLWithString requires string to be percent escaped.
|
||||
urlString = [urlString stringByAddingPercentEscapesUsingEncoding:
|
||||
NSUTF8StringEncoding];
|
||||
NSURL *url = [NSURL URLWithString:urlString];
|
||||
|
||||
// We try to be compatible with TextMate's URL scheme here, as documented
|
||||
|
||||
Reference in New Issue
Block a user