dustinblackman/oatmeal

ctrl+c ctrl+c not working on Windows

Closed this issue · 1 comments

app_state.exit_warning = false;

I haven't tried this on other platforms, but on Windows there is a null event that occurs right after ctrl+c, which resets app_state.exit_warning back to false, so ctrl+c ctrl+c doesn't work unless hold down the buttons.

A fix could look something like this:

-                app_state.exit_warning = false;
+                if input.key != tui_textarea::Key::Null {
+                    app_state.exit_warning = false;
+                }

The project builds on Windows, but due to a commit hook requiring cargo-run-bin, which depends on unix, I did not create a PR.

Fixed in 7cce417, I appreciate the report!

As for cargo-run-bin, while it's not fully Windows friendly, something basic like cargo bin committed should work fine. Though I don't have a Windows system to test on. Would you mind opening an issue over there so I could dig further, please? Thank you!