From 7959fe11c550dea9249cf85495bd6dc5d00c33f1 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 28 Nov 2024 10:13:22 +0100 Subject: [PATCH] fix dumb bug introduced in the last commit --- source/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 3f29f92..c546f63 100644 --- a/source/main.c +++ b/source/main.c @@ -110,7 +110,8 @@ signed main(const int argc, const char * const * const argv) { const char * command; if (do_select) { query(get_input_line(), 1, selection_offset + selection_relative); - command = get_entry().command ? get_entry().command : ""; + command = get_entry().command; + command = command ? command : ""; } else { command = get_input_line(); }