The branch, hooks has been updated
       via  52af8e9ff6607abbf6281a836d15bf5a83fad013 (commit)
      from  7bf8fe4767c41aeccac94211ad13f076f6586290 (commit)

- Log -----------------------------------------------------------------
commit 52af8e9ff6607abbf6281a836d15bf5a83fad013
Author: Thomas Adam <tho...@xteddy.org>
Commit: Thomas Adam <tho...@xteddy.org>

    Tidy up ring_bell()
---
 server-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/server-window.c b/server-window.c
index 72a9d37..b523299 100644
--- a/server-window.c
+++ b/server-window.c
@@ -226,7 +226,11 @@ ring_bell(struct session *s)
 
        for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                c = ARRAY_ITEM(&clients, i);
-               if (c != NULL && c->session == s && !(c->flags & 
CLIENT_CONTROL))
+               if (c == NULL)
+                       continue;
+               if (c->flags & CLIENT_CONTROL)
+                       continue;
+               if (c->session == s)
                        tty_bell(&c->tty);
        }
 }


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

Summary of changes:
 server-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to