diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-12-30 14:15:40 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-12-30 14:15:40 +0000 |
commit | d1f01386537b2c1583653b36edc3026cc901250f (patch) | |
tree | 6afe6786bfdc6c0a10273ecfc9759acbc364e6d6 | |
parent | 9e7ec2e9715b97a8b50556daae99ae39fcc62f3a (diff) |
Sync OpenBSD patchset 990:
Reset flags on every loop or it is displayed too often, from Chris
Johnsen.
-rw-r--r-- | cmd-list-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 8f957c84..c76389ad 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -54,7 +54,6 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx) return (cmd_list_keys_table(self, ctx)); width = 0; - *flags = '\0'; SPLAY_FOREACH(bd, key_bindings, &key_bindings) { key = key_string_lookup_key(bd->key & ~KEYC_PREFIX); @@ -78,6 +77,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx) if (key == NULL) continue; + *flags = '\0'; if (!(bd->key & KEYC_PREFIX)) { if (bd->can_repeat) xsnprintf(flags, sizeof flags, "-rn "); |