[hackers] [slstatus][PATCH] Add underscore to separators in strtok() call in keymap.c

From: Al <eirann_AT_disroot.org>
Date: Sun, 7 Jul 2024 09:54:21 +0300

diff --git a/components/keymap.c b/components/keymap.c
index f8a2a47..22224f3 100644
--- a/components/keymap.c
+++ b/components/keymap.c
_AT_@ -29,8 +29,8 @@ get_layout(char *syms, int grp_num)
         int grp;
 
         layout = NULL;
- tok = strtok(syms, "+:");
- for (grp = 0; tok && grp <= grp_num; tok = strtok(NULL, "+:")) {
+ tok = strtok(syms, "+:_");
+ for (grp = 0; tok && grp <= grp_num; tok = strtok(NULL, "+:_")) {
                 if (!valid_layout_or_variant(tok)) {
                         continue;
                 } else if (strlen(tok) == 1 && isdigit(tok[0])) {
-- 
2.45.2
Received on Sun Jul 07 2024 - 08:54:21 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 07 2024 - 09:48:37 CEST