mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-05-15 09:48:45 +00:00
Close editor on quit
This commit is contained in:
parent
bc0b4e9f9a
commit
95499f18dd
@ -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 {
|
||||
|
||||
@ -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.
|
||||
";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user