summaryrefslogtreecommitdiff
path: root/user/tmux/xterm-DECLRMM.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-10-09 16:59:04 -0500
committerMax Rees <maxcrees@me.com>2019-10-09 16:59:04 -0500
commit04876f20ca146fdeefe9c05859abca4849d5522e (patch)
treeee71eb48e63a428b51165d8f1d3ace34ee0994d8 /user/tmux/xterm-DECLRMM.patch
parentee6b178ab433ad93be4d44c9661cdb02c08459a2 (diff)
downloadpackages-04876f20ca146fdeefe9c05859abca4849d5522e.tar.gz
packages-04876f20ca146fdeefe9c05859abca4849d5522e.tar.bz2
packages-04876f20ca146fdeefe9c05859abca4849d5522e.tar.xz
packages-04876f20ca146fdeefe9c05859abca4849d5522e.zip
user/tmux: restore xterm-DECLRMM.patch
This patch will be needed until >= 3.0. https://github.com/tmux/tmux/commit/26f274011096b9eacfd2753d8f7afcb63e796ab9
Diffstat (limited to 'user/tmux/xterm-DECLRMM.patch')
-rw-r--r--user/tmux/xterm-DECLRMM.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/tmux/xterm-DECLRMM.patch b/user/tmux/xterm-DECLRMM.patch
new file mode 100644
index 000000000..b9bef3455
--- /dev/null
+++ b/user/tmux/xterm-DECLRMM.patch
@@ -0,0 +1,23 @@
+From 26f274011096b9eacfd2753d8f7afcb63e796ab9 Mon Sep 17 00:00:00 2001
+From: nicm <nicm>
+Date: Thu, 1 Aug 2019 11:45:34 +0000
+Subject: [PATCH] xterm 348 now disables margins when resized, so send DECLRMM
+ again.
+
+---
+ tty.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tty.c b/tty.c
+index ab1da9fd3..024aef271 100644
+--- a/tty.c
++++ b/tty.c
+@@ -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;