aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdwim3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwim b/dwim
index c958585..b171ee6 100755
--- a/dwim
+++ b/dwim
@@ -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
}