summaryrefslogtreecommitdiff
path: root/search/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'search/search.go')
-rw-r--r--search/search.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/search/search.go b/search/search.go
index 767473d..fd06ab5 100644
--- a/search/search.go
+++ b/search/search.go
@@ -89,10 +89,10 @@ args_loop:
}
- if target == nil {
+ if target == nil && suspect == nil {
subdir = append(subdir, arg)
continue args_loop
- } else if targetSource != nil {
+ } else if targetSource != nil || suspect != nil {
forward = append(forward, arg)
continue args_loop
}