diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-02 17:19:59 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-09-02 17:19:59 +0000 |
commit | 0c125e35cb4d66d7ece86de0496505781359e29b (patch) | |
tree | 869e8d19bf2d6e43b7cb5f77401ec32d94e877cf /usr.bin/tmux/tty.c | |
parent | df084a0e86092b26fe2a7e0cb132d927ab873424 (diff) |
Check started flag before looking for capability.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 0983a5d6dd4..bf64150f22c 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.383 2020/09/02 13:46:36 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.384 2020/09/02 17:19:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1905,10 +1905,10 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len) char *encoded; size_t size; - if (!tty_term_has(tty->term, TTYC_MS)) - return; if (~tty->flags & TTY_STARTED) return; + if (!tty_term_has(tty->term, TTYC_MS)) + return; size = 4 * ((len + 2) / 3) + 1; /* storage for base64 */ encoded = xmalloc(size); |