diff options
-rwxr-xr-x | dwim | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -77,10 +77,11 @@ for ($phrase) { if (/^([A-Za-z_][A-Za-z0-9_]*)\(/) { handle 'function(call'; my $dir = dir; - s/\(.*//; + s/\(.*/(/; for (`grep -n '^$_' "$dir"/*.c "$dir"/*.h`) { run @EDITOR, "+$2", $1 if /([^:]+):(\d+):/; } + fail 'could not find definition'; # FALLTHROUGH } |