From 68a1d98a3dd583c506447e8035f07ea05408f4dd Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 27 Mar 2024 11:20:00 +0800 Subject: feat: add repl command `.save session` (#382) --- src/config/session.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/config/session.rs') diff --git a/src/config/session.rs b/src/config/session.rs index 6ab855c..801615f 100644 --- a/src/config/session.rs +++ b/src/config/session.rs @@ -241,9 +241,6 @@ impl Session { } pub fn save(&mut self, session_path: &Path) -> Result<()> { - if !self.dirty { - return Ok(()); - } self.path = Some(session_path.display().to_string()); let content = serde_yaml::to_string(&self) -- cgit v1.2.3