summaryrefslogtreecommitdiff
path: root/search
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-22 20:44:06 +0200
committerewy <ewy0@protonmail.com>2026-04-22 20:44:06 +0200
commit086a0cc0eb75c0c3a15cf6a715427df1e2d589a2 (patch)
tree0bcc881b202f94a7ea39f94f13aea89ca2046312 /search
parentc6a362a039b1662dfc0badeb8badc4458e446787 (diff)
slowly working on that test coverage
Diffstat (limited to 'search')
-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
}