From bf50a1c191bbd23194cc3410c068213c04dba2cf Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 25 May 2014 19:14:44 +0100 Subject: [PATCH] In normal mode, backspace can be used to edit count Fix #125 --- src/input_handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input_handler.cc b/src/input_handler.cc index bf363d69..523a1660 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -84,6 +84,8 @@ public: { if (key.modifiers == Key::Modifiers::None and isdigit(key.key)) m_count = m_count * 10 + key.key - '0'; + else if (key == Key::Backspace) + m_count /= 10; else { auto it = keymap.find(key);