aboutsummaryrefslogtreecommitdiff
path: root/cmd-list-keys.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-10-27 00:01:09 +0000
committerThomas Adam <thomas@xteddy.org>2015-10-27 00:01:09 +0000
commit9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf (patch)
treee9f9adce4a30b6048840528d7db94e9261809696 /cmd-list-keys.c
parent54a3ed751e111833ca7f34563676d92f407709ce (diff)
parent640c6fdd5fd859cffecf461647440a437d25f879 (diff)
downloadrtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.tar.gz
rtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.tar.bz2
rtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r--cmd-list-keys.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c
index e2d5dc52..d26486bd 100644
--- a/cmd-list-keys.c
+++ b/cmd-list-keys.c
@@ -77,8 +77,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_q *cmdq)
continue;
RB_FOREACH(bd, key_bindings, &table->key_bindings) {
key = key_string_lookup_key(bd->key);
- if (key == NULL)
- continue;
if (bd->can_repeat)
repeat = 1;
@@ -97,8 +95,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_q *cmdq)
continue;
RB_FOREACH(bd, key_bindings, &table->key_bindings) {
key = key_string_lookup_key(bd->key);
- if (key == NULL)
- continue;
if (!repeat)
r = "";
@@ -140,8 +136,6 @@ cmd_list_keys_table(struct cmd *self, struct cmd_q *cmdq)
any_mode = 0;
RB_FOREACH(mbind, mode_key_tree, mtab->tree) {
key = key_string_lookup_key(mbind->key);
- if (key == NULL)
- continue;
if (mbind->mode != 0)
any_mode = 1;
@@ -153,8 +147,6 @@ cmd_list_keys_table(struct cmd *self, struct cmd_q *cmdq)
RB_FOREACH(mbind, mode_key_tree, mtab->tree) {
key = key_string_lookup_key(mbind->key);
- if (key == NULL)
- continue;
mode = "";
if (mbind->mode != 0)