hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/jafm.c
diff options
context:
space:
mode:
Diffstat (limited to 'jafm.c')
-rw-r--r--jafm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jafm.c b/jafm.c
index 424fc5a..b20937b 100644
--- a/jafm.c
+++ b/jafm.c
@@ -1525,7 +1525,7 @@ int main(int argc, char** argv)
size_t selected = 0;
bool has_selection;
- if (open_first)
+ if (open_first || matches.count == 1)
has_selection = true;
else if (isatty(STDIN_FILENO))
has_selection = select_interactive(&matches, query, &selected);