summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-25 19:14:44 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-25 19:14:44 +0100
commitbf50a1c191bbd23194cc3410c068213c04dba2cf (patch)
tree3738a952c2c3eaca56be177eb2ca48ff1ded819e /src
parent1498fa9e4a2241a32723568dc09954458b18b31d (diff)
In normal mode, backspace can be used to edit count
Fix #125
Diffstat (limited to 'src')
-rw-r--r--src/input_handler.cc2
1 files changed, 2 insertions, 0 deletions
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);