diff options
Diffstat (limited to 'src/repl')
| -rw-r--r-- | src/repl/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 1633774..0a601c7 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -74,6 +74,8 @@ pub struct Repl { impl Repl { pub fn init(config: &GlobalConfig) -> Result<Self> { + config.write().in_repl = true; + let editor = Self::create_editor(config)?; let prompt = ReplPrompt::new(config); @@ -212,7 +214,7 @@ impl Repl { self.config.write().clear_role()?; } Some("session") => { - self.config.write().end_session(true)?; + self.config.write().end_session()?; } Some(_) => unknown_command()?, None => { |
