From d0c30ded21100369f79c1ff720c54d4389222cf6 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 7 Dec 2017 14:47:23 -0800 Subject: [PATCH] Ncurses backend: use character pattern instead of string --- 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 29ea54a..adbca5d 100644 --- a/src/backend/curses/n.rs +++ b/src/backend/curses/n.rs @@ -460,7 +460,7 @@ fn initialize_keymap() -> HashMap { None => continue, }; - if !name.starts_with("k") { + if !name.starts_with('k') { continue; }