aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdwim2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwim b/dwim
index fee70ca..4df82f5 100755
--- a/dwim
+++ b/dwim
@@ -72,7 +72,7 @@ for ($phrase) {
my $dir = dir;
s/\(.*/(/;
for (`grep -n '^$_' "$dir"/*.c "$dir"/*.h`) {
- run @EDITOR, "+$2", $1 if /([^:]+):(\d+):/;
+ run @EDITOR, "+$2", path($1) if /([^:]+):(\d+):/;
}
fail 'could not find definition';
# FALLTHROUGH