aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-04-17 00:23:08 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-04-17 00:23:08 -0700
commit79fae84b106d4ca83ef603117cda395e3fe18132 (patch)
tree9d08f5c9bbb8c4b84932f2e4d48bd595df192172 /bb.c
parent6a1522645e5ec0f3f81234ca776be8896a81bd42 (diff)
Tweaks
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bb.c b/bb.c
index cfc3d8d..7fedffd 100644
--- a/bb.c
+++ b/bb.c
@@ -628,11 +628,11 @@ static void run_bbcmd(bb_t *bb, const char *cmd)
else script = trim(script);
} else description = script;
for (char *key; (key = strsep(&keys, ",")); ) {
- int is_section = streq(key, "Section");
+ if (streq(key, "Section")) continue;
int keyval = bkeywithname(key);
- if (keyval == -1 && !is_section) continue;
+ if (keyval == -1) continue;
for (size_t i = 0; i < sizeof(bindings)/sizeof(bindings[0]); i++) {
- if (bindings[i].script && (bindings[i].key != keyval || is_section))
+ if (bindings[i].script && bindings[i].key != keyval)
continue;
char *script2;
if (is_simple_bbcmd(script)) {