diff --git a/src/PikaObj.c b/src/PikaObj.c index a4765e0e4..5f80f33ef 100644 --- a/src/PikaObj.c +++ b/src/PikaObj.c @@ -1614,10 +1614,12 @@ enum shellCTRL _inner_do_obj_runChar(PikaObj* self, shell->stat = PIKA_SHELL_STATE_WAIT_FUNC_KEY; ctrl = SHELL_CTRL_CONTINUE; goto __exit; + } else { + shell->stat = PIKA_SHELL_STATE_NORMAL; } - shell->stat = PIKA_SHELL_STATE_NORMAL; } if (shell->stat == PIKA_SHELL_STATE_WAIT_FUNC_KEY) { + shell->stat = PIKA_SHELL_STATE_NORMAL; if (inputChar == PIKA_KEY_LEFT) { if (shell->line_curpos) { shell->line_curpos--;