Skip to content

Commit

Permalink
fix: Exit warning on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Nov 30, 2023
1 parent 08f602a commit 7cce417
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/application/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ async fn start_loop<B: Backend>(
continue;
}

app_state.exit_warning = false;
// Windows submits a null event right after CTRL+C. Ignore it.
if input.key != tui_textarea::Key::Null {
app_state.exit_warning = false;
}

textarea.input(input);
}
Event::KeyboardCTRLC() => {
Expand Down

0 comments on commit 7cce417

Please sign in to comment.