diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-16 01:36:58 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-16 01:39:07 +0200 |
commit | 80630ae9ba9739b263fe096573cb05d5661b4549 (patch) | |
tree | 53d5b31b070e7308f8580f454c7e77022b394365 /src/main.rs | |
parent | 21987e5fba19c1e054f5e522e3308976a90a5348 (diff) |
Change mode when expecting input
Otherwise pressing 'q' would exit even when expecting input, oof.
Closes #14
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 28bb412..ef3e467 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,7 +111,7 @@ fn main() -> Result<(), Error> { }, ThreadEvent::Input(k) => { match k { - Key::Char('q') | Key::Char('Q') => { + Key::Char('q') | Key::Char('Q') if state.mode == UIMode::Normal => { drop(state); break 'main; }, |