Close editor on quit

This commit is contained in:
mo8it 2026-04-06 23:11:13 +02:00
parent bc0b4e9f9a
commit 95499f18dd
2 changed files with 2 additions and 2 deletions

View File

@ -111,6 +111,7 @@ fn main() -> Result<ExitCode> {
};
watch::watch(&mut app_state, notify_exercise_names)?;
app_state.close_editor()?;
}
Some(Command::Run { name }) => {
if let Some(name) = name {

View File

@ -172,8 +172,7 @@ pub fn watch(
watch_list_loop(app_state, notify_exercise_names)
}
const QUIT_MSG: &[u8] = b"
const QUIT_MSG: &[u8] = b"q\n
We hope you're enjoying learning Rust!
If you want to continue working on the exercises at a later point, you can simply run `rustlings` again in this directory.
";