diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index 035fbbe5c6..2b4c09abdb 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -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