aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-06 18:28:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-06 18:30:05 +0000
commit398f0b699ac89efc49fcf0d7fc10b26e4374aa97 (patch)
tree62cdef14a793a40a359adcb980af0774c2a89007
parentconfig: break out “[cmd arg1 arg2]” parsing to separate function (diff)
config: mouse combos: set count=1 if user has omitted click count
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 8384174a..c460c987 100644
--- a/config.c
+++ b/config.c
@@ -1381,7 +1381,7 @@ parse_mouse_combos(struct config *conf, const char *combos, key_combo_list_t *ke
key++; /* Skip past the '+' */
}
- size_t count = 0;
+ size_t count = 1;
{
char *_count = strrchr(key, '-');
if (_count != NULL) {