From a183a539d908e91ed2ae8942f5fc147464cd225a Mon Sep 17 00:00:00 2001 From: savalet Date: Thu, 17 Apr 2025 20:01:41 +0200 Subject: [PATCH] Fix change shell command check --- src/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 73558e7..a304bd1 100644 --- a/src/shell.c +++ b/src/shell.c @@ -85,7 +85,7 @@ int shell_loop(int is_a_tty, exec_ctx_t *exec_ctx) while (true) { write_prompt(is_a_tty); - if (change_shell_command(&buffer, exec_ctx, buffer_sz) == false) + if (change_shell_command(&buffer, exec_ctx, buffer_sz) == true) return exec_ctx->history->last_exit_code; } free(exec_ctx->history_command);