summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-13 02:20:04 +0200
committermo8it <mo8it@proton.me>2024-05-13 02:20:04 +0200
commit052573904604896398a6cc7281398fa9fdf8f083 (patch)
treeb7938cc434609ca534203ca7b275ec3b6c8b0a98 /src/watch.rs
parent11fda5d70f568e0f528d91dd573447719abe05f4 (diff)
Fix invisible input on Windows
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 453d9a4..944d77b 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -92,8 +92,8 @@ pub fn watch(
break;
}
WatchEvent::Input(InputEvent::Run) => watch_state.run_current_exercise()?,
- WatchEvent::Input(InputEvent::Unrecognized(cmd)) => {
- watch_state.handle_invalid_cmd(&cmd)?;
+ WatchEvent::Input(InputEvent::Unrecognized(input)) => {
+ watch_state.handle_invalid_input(input)?;
}
WatchEvent::FileChange { exercise_ind } => {
watch_state.run_exercise_with_ind(exercise_ind)?;