Created
December 21, 2015 13:05
-
-
Save anonymous/7cf326fa33901d9665f9 to your computer and use it in GitHub Desktop.
/etc/portage/patches/app-misc/tmux/fix-reattach-with-session-list.patch /home/tatsh/dev/tmux/fix-reattach.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/portage/patches/app-misc/tmux/fix-reattach-with-session-list.patch | |
--- cmd-attach-session.c.old 2015-12-21 05:01:35.060975526 -0800 | |
+++ cmd-attach-session.c 2015-12-21 05:01:40.179848875 -0800 | |
@@ -120,7 +120,7 @@ | |
TAILQ_FOREACH(c_loop, &clients, entry) { | |
if (c_loop->session != s || c == c_loop) | |
continue; | |
- server_write_client(c, MSG_DETACH, | |
+ server_write_client(c_loop, MSG_DETACH, | |
c_loop->session->name, | |
strlen(c_loop->session->name) + 1); | |
} | |
$ cat /home/tatsh/dev/tmux/fix-reattach.patch | |
diff --git a/cmd-attach-session.c b/cmd-attach-session.c | |
index 4d8a75f..993f4c7 100644 | |
--- a/cmd-attach-session.c | |
+++ b/cmd-attach-session.c | |
@@ -91,7 +91,7 @@ cmd_attach_session(struct cmd_q *cmdq, int dflag, int rflag, const char *cflag, | |
TAILQ_FOREACH(c_loop, &clients, entry) { | |
if (c_loop->session != s || c == c_loop) | |
continue; | |
- server_client_detach(c, MSG_DETACH); | |
+ server_client_detach(c_loop, MSG_DETACH); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment