mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Fix character escaping for "New File Here" service
This also makes this service work on Tiger.
This commit is contained in:
@@ -1212,7 +1212,7 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
|
||||
if (!dirIndicator)
|
||||
path = [path stringByDeletingLastPathComponent];
|
||||
|
||||
path = [path stringByReplacingOccurrencesOfString:@" " withString:@"\\ "];
|
||||
path = [path stringByEscapingSpecialFilenameCharacters];
|
||||
|
||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
||||
BOOL openInCurrentWindow = [ud boolForKey:MMOpenInCurrentWindowKey];
|
||||
|
||||
Reference in New Issue
Block a user