summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)