mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-19 21:55:13 +00:00
macOS: Fix the path encoding issue from drag and drop files
This commit is contained in:
parent
ae77f696ce
commit
3db0aab24b
1 changed files with 1 additions and 1 deletions
|
|
@ -1377,7 +1377,7 @@ is_ascii_control_char(char x) {
|
|||
if ([obj isKindOfClass:[NSURL class]]) {
|
||||
NSURL *url = (NSURL*)obj;
|
||||
if ([uri_list length] > 0) [uri_list appendString:@("\n")];
|
||||
if (url.fileURL) [uri_list appendFormat:@("file://%s"), url.fileSystemRepresentation];
|
||||
if (url.fileURL) [uri_list appendString:url.filePathURL.absoluteString];
|
||||
else [uri_list appendString:url.absoluteString];
|
||||
} else if ([obj isKindOfClass:[NSString class]]) {
|
||||
const char *text = [obj UTF8String];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue