The branch, master has been updated
       via  2c08a3a55922651b2d5100ba5778cce74da906b2 (commit)
       via  2eb6d6e31bdd2270e242d234006e7c83e0d12255 (commit)
      from  334c28afe71eabb236bf8cfdfc18f56d99719711 (commit)

- Log -----------------------------------------------------------------
commit 2c08a3a55922651b2d5100ba5778cce74da906b2
Merge: 334c28a 2eb6d6e
Author: Thomas Adam <tho...@xteddy.org>
Commit: Thomas Adam <tho...@xteddy.org>

    Merge branch 'obsd-master'

 cmd-detach-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)



commit 2eb6d6e31bdd2270e242d234006e7c83e0d12255
Author: nicm <nicm>
Commit: nicm <nicm>

    Fix detach -a by skipping clients where the session is NULL.
---
 cmd-detach-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cmd-detach-client.c b/cmd-detach-client.c
index 82001be..d40ef5a 100644
--- a/cmd-detach-client.c
+++ b/cmd-detach-client.c
@@ -71,7 +71,8 @@ cmd_detach_client_exec(struct cmd *self, struct cmd_q *cmdq)
                if (args_has(args, 'a')) {
                        for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                                c2 = ARRAY_ITEM(&clients, i);
-                               if (c2 == NULL || c == c2)
+                               if (c2 == NULL || c2->session == NULL ||
+                                   c2 == c)
                                        continue;
                                server_write_client(c2, msgtype,
                                    c2->session->name,


-----------------------------------------------------------------------

Summary of changes:
 cmd-detach-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to