diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 01:40:58 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 01:41:33 -0400 |
| commit | 24fb6ee3b2d6e3c68410e439c7395f5058dabce5 (patch) | |
| tree | 7defb2460e92b0019c26004110ed4f82d70466db /input_field.c | |
| parent | 4ec95c0bc1223aee10449bf831d29f4f683faff7 (diff) | |
exit codes
Diffstat (limited to 'input_field.c')
| -rw-r--r-- | input_field.c | 2 |
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; } |
