aboutsummaryrefslogtreecommitdiff
path: root/input_field.c
diff options
context:
space:
mode:
Diffstat (limited to 'input_field.c')
-rw-r--r--input_field.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input_field.c b/input_field.c
index 46f0791..31ae627 100644
--- a/input_field.c
+++ b/input_field.c
@@ -41,6 +41,7 @@ bool type_key(client_state* state, xkb_keysym_t keysym) {
(keysym == XKB_KEY_Escape)) {
state->running = false;
+ state->exit_code = EXIT_FAILURE;
return false;
}
@@ -114,4 +115,5 @@ void submit_line(client_state* state) {
printf("%s\n", state->items[state->filtered_items[state->selected_filtered_item]].text);
}
state->running = false;
+ state->exit_code = EXIT_SUCCESS;
}