[arch-commits] Commit in tmux/trunk (0002-xterm-348.patch PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Aug 21 19:03:05 UTC 2019


    Date: Wednesday, August 21, 2019 @ 19:03:05
  Author: eworm
Revision: 500438

upgpkg: tmux 2.9_a-4

fix xterm 348 (FS#63291)

Added:
  tmux/trunk/0002-xterm-348.patch
Modified:
  tmux/trunk/PKGBUILD

----------------------+
 0002-xterm-348.patch |   23 +++++++++++++++++++++++
 PKGBUILD             |    5 ++++-
 2 files changed, 27 insertions(+), 1 deletion(-)

Added: 0002-xterm-348.patch
===================================================================
--- 0002-xterm-348.patch	                        (rev 0)
+++ 0002-xterm-348.patch	2019-08-21 19:03:05 UTC (rev 500438)
@@ -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;

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-21 18:26:40 UTC (rev 500437)
+++ PKGBUILD	2019-08-21 19:03:05 UTC (rev 500438)
@@ -4,7 +4,7 @@
 
 pkgname=tmux
 pkgver=2.9_a
-pkgrel=3
+pkgrel=4
 pkgdesc='A terminal multiplexer'
 url='https://github.com/tmux/tmux/wiki'
 arch=('x86_64')
@@ -12,9 +12,11 @@
 depends=('ncurses' 'libevent' 'libutempter')
 source=("https://github.com/tmux/tmux/releases/download/${pkgver/_/}/tmux-${pkgver/_/}.tar.gz"
 	'0001-fix-sizing.patch'
+        '0002-xterm-348.patch'
 	'LICENSE')
 sha256sums=('839d167a4517a6bffa6b6074e89a9a8630547b2dea2086f1fad15af12ab23b25'
             '74c89e7c85622c44a07fdce1eefd021dbb0e484a02f7da210ae3ebfa5fdd2fe4'
+            '4405816aa3bc1cab7f2bd504fd3aac40d434151171c3d79e1ee88b65103b0600'
             'b5de80619e4884ced2dfe0a96020e85dcfb715a831ecdfdd7ce8c97b5a6ff2cc')
 
 prepare() {
@@ -21,6 +23,7 @@
 	cd "$srcdir/$pkgname-${pkgver/_/}"
 
 	patch -Np1 < ../0001-fix-sizing.patch
+	patch -Np1 < ../0002-xterm-348.patch
 }
 
 build() {



More information about the arch-commits mailing list