diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-04-17 00:23:08 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-04-17 00:23:08 -0700 |
| commit | 79fae84b106d4ca83ef603117cda395e3fe18132 (patch) | |
| tree | 9d08f5c9bbb8c4b84932f2e4d48bd595df192172 /bb.c | |
| parent | 6a1522645e5ec0f3f81234ca776be8896a81bd42 (diff) | |
Tweaks
Diffstat (limited to 'bb.c')
| -rw-r--r-- | bb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) { |
