From 833ad6889e999248a132d680ad5b2c06d03f1302 Mon Sep 17 00:00:00 2001 From: Daniel Xu Date: Wed, 19 Feb 2020 14:26:09 -0800 Subject: [PATCH] Fix Event::CtrlChar('z') binding for ncurses backend (#427) This patch fixes an off by one error where we don't handle ctrl-z correctly. --- src/backend/curses/n.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/curses/n.rs b/src/backend/curses/n.rs index 3bde9c9..3e04534 100644 --- a/src/backend/curses/n.rs +++ b/src/backend/curses/n.rs @@ -505,7 +505,7 @@ fn initialize_keymap() -> HashMap { // Then add some dynamic ones - for c in 1..26 { + for c in 1..=26 { let event = match c { // This is Ctrl+C // TODO: Don't exit here, but add this as a default callback