diff options
| author | 2020-01-12 20:20:20 +0000 | |
|---|---|---|
| committer | 2020-01-12 20:20:20 +0000 | |
| commit | be3ccdcb25dfcac4d6489fddb9fd82cb8cc7e7f4 (patch) | |
| tree | 718556e63f6f482c8eacedcbfa828f20cd26cd12 /usr.bin/tmux/tty-keys.c | |
| parent | Implement cpu_kick() and cpu_unidle(). (diff) | |
| download | wireguard-openbsd-be3ccdcb25dfcac4d6489fddb9fd82cb8cc7e7f4.tar.xz wireguard-openbsd-be3ccdcb25dfcac4d6489fddb9fd82cb8cc7e7f4.zip | |
Loop over all DA features, don't skip the first.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
| -rw-r--r-- | usr.bin/tmux/tty-keys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 3335134fed2..18113def59c 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.116 2019/11/28 10:17:22 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.117 2020/01/12 20:20:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1038,7 +1038,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len, cp = tmp; while ((next = strsep(&cp, ";")) != NULL) { p[n] = strtoul(next, &endptr, 10); - if (*endptr != '\0' && *endptr != ';') + if (*endptr != '\0') p[n] = 0; n++; } @@ -1068,7 +1068,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len, type = TTY_VT520; break; } - for (i = 2; i < n; i++) + for (i = 1; i < n; i++) log_debug("%s: DA feature: %d", c->name, p[i]); tty_set_type(tty, type); |
