File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1752,7 +1752,7 @@ - (void)handleGetURLEvent:(NSAppleEventDescriptor *)event
1752
1752
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
1753
1753
f = [f stringByRemovingPercentEncoding ];
1754
1754
#else
1755
- f = [f stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
1755
+ f = [f stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
1756
1756
#endif
1757
1757
1758
1758
// parse value
@@ -1763,20 +1763,20 @@ - (void)handleGetURLEvent:(NSAppleEventDescriptor *)event
1763
1763
if (decode)
1764
1764
{
1765
1765
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_11
1766
- v = [f stringByRemovingPercentEncoding ];
1766
+ v = [v stringByRemovingPercentEncoding ];
1767
1767
#else
1768
- v = [f stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
1768
+ v = [v stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
1769
1769
#endif
1770
1770
}
1771
1771
1772
- [dict setValue: v forKey: f];
1772
+ [dict setValue: v forKey: f];
1773
1773
}
1774
1774
}
1775
1775
1776
1776
// Actually open the file.
1777
1777
NSString *file = [dict objectForKey: @" url" ];
1778
1778
if (file != nil ) {
1779
- NSURL *fileUrl= [NSURL URLWithString: file];
1779
+ NSURL *fileUrl = [NSURL URLWithString: file];
1780
1780
// TextMate only opens files that already exist.
1781
1781
if ([fileUrl isFileURL ]
1782
1782
&& [[NSFileManager defaultManager ] fileExistsAtPath:
You can’t perform that action at this time.
0 commit comments