From 134d8584c1cc5b77f73723912c8423798dac8ddd Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 7 Apr 2024 00:40:38 -0700 Subject: need to go back to command mode after failing to execute a named command Change-Id: Icc7bf576cb4fed9ca8be538060de3843053896ad --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 9055d5f..0b41389 100644 --- a/src/main.rs +++ b/src/main.rs @@ -246,11 +246,13 @@ fn make_command_string_readtable() -> ReadTable { eval(&eval_body, state) } _ => { + state.mode = Mode::CommandChar; Err(err_msg(format!( "Unable to execute ({}) as a named word", word))) } } } else { + state.mode = Mode::CommandChar; Err(err_msg(format!( "Unable to execute ({}) as a named word", word))) } -- cgit 1.4.1