Introduction
Introduction Statistics Contact Development Disclaimer Help
Add underscore to separators in strtok() call in keymap.c - slstatus - status m…
git clone git://git.suckless.org/slstatus
Log
Files
Refs
README
LICENSE
---
commit b6267f7d0bedf5789206adf21f33cfe1a872289c
parent 0b00c0319c7b4a941b40aa8709bb4c478f9a9b1f
Author: Al <[email protected]>
Date: Sun, 7 Jul 2024 09:54:21 +0300
Add underscore to separators in strtok() call in keymap.c
Diffstat:
M components/keymap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/components/keymap.c b/components/keymap.c
@@ -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])) {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.