config: mouse combos: set count=1 if user has omitted click count

This commit is contained in:
Daniel Eklöf 2020-11-06 19:28:38 +01:00
parent 8ede3dc886
commit 398f0b699a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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