In normal mode, backspace can be used to edit count

Fix #125
This commit is contained in:
Maxime Coste 2014-05-25 19:14:44 +01:00
parent 1498fa9e4a
commit bf50a1c191

View File

@ -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);