Add a small patch that would be part of 3.1b if it gets released.

This commit is contained in:
Mathieu Arnold
2020-05-04 08:23:47 +00:00
parent 29d2ca2029
commit 12abc12774
2 changed files with 19 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
PORTNAME= tmux
PORTVERSION= 3.1a
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}

View File

@@ -0,0 +1,18 @@
From 6a33a12798b2afeee6fb7bba74d86d628137921e Mon Sep 17 00:00:00 2001
From: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Thu, 30 Apr 2020 15:20:08 +0100
Subject: [PATCH] Do not remove the automatic-rename option from the global
set, only from the window (it must stay in the global set or tmux will
crash). GitHub issue 2188.
--- input.c.orig 2020-04-29 20:01:18 UTC
+++ input.c
@@ -2304,7 +2304,7 @@ input_exit_rename(struct input_ctx *ictx)
return;
if (ictx->input_len == 0) {
- oe = options_get(wp->window->options, "automatic-rename");
+ oe = options_get_only(wp->window->options, "automatic-rename");
if (oe != NULL)
options_remove(oe);
return;