summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-16 01:36:58 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-16 01:39:07 +0200
commit80630ae9ba9739b263fe096573cb05d5661b4549 (patch)
tree53d5b31b070e7308f8580f454c7e77022b394365 /src/main.rs
parent21987e5fba19c1e054f5e522e3308976a90a5348 (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.rs2
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;
},