summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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)))
         }