summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-08-01 11:45:35 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-08-01 11:45:35 +0000
commitef291f36ec0a4b73b58356fe032de4449e305107 (patch)
tree11f2866ce494d9bca67117194b8e00a341abc074 /usr.bin/tmux
parentefc06d367a476467088de0aecba0a98dc3bbbde2 (diff)
xterm 348 now disables margins when resized, so send DECLRMM again.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index a0672a35dde..c4b5ae4886f 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.329 2019/07/16 14:11:52 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.330 2019/08/01 11:45:34 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1879,6 +1879,8 @@ tty_invalidate(struct tty *tty)
tty->rlower = tty->rright = UINT_MAX;
if (tty->flags & TTY_STARTED) {
+ if (tty_use_margin(tty))
+ tty_puts(tty, "\033[?69h"); /* DECLRMM */
tty_putcode(tty, TTYC_SGR0);
tty->mode = ALL_MODES;