mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 18:13:29 +02:00
Close editor on quit
This commit is contained in:
@@ -111,6 +111,7 @@ fn main() -> Result<ExitCode> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
watch::watch(&mut app_state, notify_exercise_names)?;
|
watch::watch(&mut app_state, notify_exercise_names)?;
|
||||||
|
app_state.close_editor()?;
|
||||||
}
|
}
|
||||||
Some(Command::Run { name }) => {
|
Some(Command::Run { name }) => {
|
||||||
if let Some(name) = name {
|
if let Some(name) = name {
|
||||||
|
|||||||
+1
-2
@@ -172,8 +172,7 @@ pub fn watch(
|
|||||||
watch_list_loop(app_state, notify_exercise_names)
|
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!
|
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.
|
If you want to continue working on the exercises at a later point, you can simply run `rustlings` again in this directory.
|
||||||
";
|
";
|
||||||
|
|||||||
Reference in New Issue
Block a user