Skip to content

Commit 95499f1

Browse files
committed
Close editor on quit
1 parent bc0b4e9 commit 95499f1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ fn main() -> Result<ExitCode> {
111111
};
112112

113113
watch::watch(&mut app_state, notify_exercise_names)?;
114+
app_state.close_editor()?;
114115
}
115116
Some(Command::Run { name }) => {
116117
if let Some(name) = name {

src/watch.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ pub fn watch(
172172
watch_list_loop(app_state, notify_exercise_names)
173173
}
174174

175-
const QUIT_MSG: &[u8] = b"
176-
175+
const QUIT_MSG: &[u8] = b"q\n
177176
We hope you're enjoying learning Rust!
178177
If you want to continue working on the exercises at a later point, you can simply run `rustlings` again in this directory.
179178
";

0 commit comments

Comments
 (0)