aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2020-09-02 17:19:58 +0000
committernicm <nicm>2020-09-02 17:19:58 +0000
commite538bef7576456911cd8cf76d3e4ff2ef97bd671 (patch)
tree5867e95d26e5254548e4a242d7722fa608e464ad /tty.c
parent37b1600d9cf7076498760372dcc20f021e4c181a (diff)
downloadrtmux-e538bef7576456911cd8cf76d3e4ff2ef97bd671.tar.gz
rtmux-e538bef7576456911cd8cf76d3e4ff2ef97bd671.tar.bz2
rtmux-e538bef7576456911cd8cf76d3e4ff2ef97bd671.zip
Check started flag before looking for capability.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 148b1d2d..30b94e04 100644
--- a/tty.c
+++ b/tty.c
@@ -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);