diff options
author | Irene Knapp <ireneista@irenes.space> | 2024-04-07 00:40:38 -0700 |
---|---|---|
committer | Irene Knapp <ireneista@irenes.space> | 2024-04-07 00:40:38 -0700 |
commit | 134d8584c1cc5b77f73723912c8423798dac8ddd (patch) | |
tree | 74047a364ff8e3c118c171e50da08a73736740d0 /src | |
parent | 846255c2c3eb9c4be2e4d6a2d41026cd54003bca (diff) |
need to go back to command mode after failing to execute a named command
Change-Id: Icc7bf576cb4fed9ca8be538060de3843053896ad
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
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))) } |