aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index 5dd59384..d4eac3ac 100644
--- a/config.c
+++ b/config.c
@@ -1485,6 +1485,11 @@ parse_modifiers(struct context *ctx, const char *text, size_t len,
bool ret = false;
*modifiers = (struct config_key_modifiers){0};
+
+ /* Handle "none" separately because e.g. none+shift is nonsense */
+ if (strncmp(text, "none", len) == 0)
+ return true;
+
char *copy = xstrndup(text, len);
for (char *tok_ctx = NULL, *key = strtok_r(copy, "+", &tok_ctx);