Skip to content

Commit

Permalink
Fix vscode/ium support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcneb10 committed Aug 10, 2023
1 parent 773b044 commit fee444e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Open/This.pm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ sub editor_args_from_parsed_text {
$result .= ":" . $parsed->{column_number};
}
}
return ($result);
return ( '--goto', $result );
}

# See https://vi.stackexchange.com/questions/18499/can-i-open-a-file-at-an-arbitrary-line-and-column-via-the-command-line
Expand Down
6 changes: 3 additions & 3 deletions t/vscode_family.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ for my $editor (@editors) {

eq_or_diff(
[ to_editor_args('t/git.t') ],
[ 't/git.t', ],
[ '--goto', 't/git.t', ],
$editor . ' filename'
);

eq_or_diff(
[ to_editor_args('t/git.t:10') ],
[ 't/git.t:10', ],
[ '--goto', 't/git.t:10', ],
$editor . ' line'
);

eq_or_diff(
[ to_editor_args('t/git.t:10:22') ],
[ 't/git.t:10:22', ],
[ '--goto', 't/git.t:10:22', ],
$editor . ' line and column'
);

Expand Down

0 comments on commit fee444e

Please sign in to comment.