Skip to content

Commit 648d843

Browse files
committed
PR macvim-dev#1002 removed decoding of the mvim:// url query. Every query goes through decoding now, no exceptions.
1 parent 5e199f4 commit 648d843

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/MacVim/MMAppController.m

+2-7
Original file line numberDiff line numberDiff line change
@@ -1758,16 +1758,11 @@ - (void)handleGetURLEvent:(NSAppleEventDescriptor *)event
17581758
// parse value
17591759
NSString *v = [arr objectAtIndex:1];
17601760

1761-
// do not decode url, since it's a file URI
1762-
BOOL decode = ![f isEqualToString:@"url"];
1763-
if (decode)
1764-
{
17651761
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
1766-
v = [f stringByRemovingPercentEncoding];
1762+
v = [f stringByRemovingPercentEncoding];
17671763
#else
1768-
v = [f stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
1764+
v = [f stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
17691765
#endif
1770-
}
17711766

17721767
[dict setValue:v forKey:f];
17731768
}

0 commit comments

Comments
 (0)