aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 7c44ace..97cadf2 100644
--- a/commands.c
+++ b/commands.c
@@ -59,6 +59,13 @@ bool cg_quit(arg_t status)
return None; /* silence tcc warning */
}
+bool cg_pick_quit(arg_t status)
+{
+ if (options->to_stdout && markcnt == 0)
+ printf("%s%c", files[fileidx].name, options->using_null ? '\0' : '\n');
+ return cg_quit(status);
+}
+
bool cg_switch_mode(arg_t _)
{
if (mode == MODE_IMAGE) {