summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-06-03 23:07:33 +0200
committerportix <portix@gmx.net>2013-06-03 23:07:33 +0200
commit7e33aa28989f08e431dfaf69c8550d1857344431 (patch)
tree478c3f14ba6a5744761adaa2cdfd5e3e251b25b2
parent2a476be510264eba00db69298d730f1fe479fc6b (diff)
downloaddwb-7e33aa28989f08e431dfaf69c8550d1857344431.zip
Allow binding of numbers
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index dfd1e4f8..5ed33223 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -2968,7 +2968,7 @@ dwb_eval_key(GdkEventKey *e)
if (key == NULL)
return false;
- if (DIGIT(e))
+ if (dwb.state.buffer->len == 0 && DIGIT(e))
{
keynum = e->keyval - GDK_KEY_0;
if (dwb.state.nummod >= 0)