Skip to content
Snippets Groups Projects
Commit 41e2377b authored by Jack Chen (chendo)'s avatar Jack Chen (chendo)
Browse files

Default to `open` if there are no valid text editors

parent 198d6f4c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -116,7 +116,7 @@
return;
}
if ([self isTextFile: path]) {
if (editor && [self isTextFile: path]) {
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@://open?url=file://%@&line=%@", editor, path, lineNumber, nil]];
[[NSWorkspace sharedWorkspace] openURL:url];
return;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment