Revision: 2862
          http://tmux.svn.sourceforge.net/tmux/?rev=2862&view=rev
Author:   tcunha
Date:     2012-08-31 09:20:09 +0000 (Fri, 31 Aug 2012)
Log Message:
-----------
Sync OpenBSD patchset 1163:

Tidy up tty_write, from Sean Estabrooks.

Modified Paths:
--------------
    trunk/tty.c

Modified: trunk/tty.c
===================================================================
--- trunk/tty.c 2012-08-31 09:18:50 UTC (rev 2861)
+++ trunk/tty.c 2012-08-31 09:20:09 UTC (rev 2862)
@@ -667,7 +667,6 @@
 {
        struct window_pane      *wp = ctx->wp;
        struct client           *c;
-       struct session          *s;
        u_int                    i;
 
        /* wp can be NULL if updating the screen but not the terminal. */
@@ -681,25 +680,19 @@
 
        for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
                c = ARRAY_ITEM(&clients, i);
-               if (c == NULL || c->session == NULL)
+               if (c == NULL || c->session == NULL || c->tty.term == NULL)
                        continue;
-               if (c->flags & CLIENT_SUSPENDED)
+               if (c->flags & (CLIENT_SUSPENDED|TTY_FREEZE))
                        continue;
-               s = c->session;
+               if (c->session->curw->window != wp->window)
+                       continue;
 
-               if (s->curw->window == wp->window) {
-                       if (c->tty.term == NULL)
-                               continue;
-                       if (c->tty.flags & TTY_FREEZE)
-                               continue;
+               ctx->xoff = wp->xoff;
+               ctx->yoff = wp->yoff;
+               if (status_at_line(c) == 0)
+                       ctx->yoff++;
 
-                       ctx->xoff = wp->xoff;
-                       ctx->yoff = wp->yoff;
-                       if (status_at_line(c) == 0)
-                               ctx->yoff++;
-
-                       cmdfn(&c->tty, ctx);
-               }
+               cmdfn(&c->tty, ctx);
        }
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to