From 82821768eac339f04ec63c8864fd09ff0c54a1ae Mon Sep 17 00:00:00 2001 From: carpetoctopus Date: Thu, 30 Apr 2026 17:27:59 +0200 Subject: [PATCH] fix style --- sway/input/keyboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index 9ca839720..1116b9a57 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -46,14 +46,14 @@ uint32_t get_modifier_mask_by_name(const char *name) { const char *start = p; const char *end = p; - while (*end && *end != '+') end++; + while (*end && *end != '+') { + end++; + } size_t len = (size_t)(end - start); for (int i = 0; i < (int)(sizeof(modifiers) / sizeof(modifiers[0])); ++i) { - if (strlen(modifiers[i].name) == len && - strncasecmp(modifiers[i].name, start, len) == 0 - ) { + if (strlen(modifiers[i].name) == len && strncasecmp(modifiers[i].name, start, len) == 0) { mod |= modifiers[i].mod; break; }