Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29805

Modified Files:
        session.c 
Log Message:
Sync OpenBSD patchset 804:

Undo a change to next/previous session that got mixed in prematurely.


Index: session.c
===================================================================
RCS file: /cvsroot/tmux/tmux/session.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- session.c   22 Dec 2010 15:31:56 -0000      1.80
+++ session.c   22 Dec 2010 15:32:40 -0000      1.81
@@ -186,9 +186,10 @@
        struct session *s2;
        u_int           i;
 
-       if (ARRAY_LENGTH(&sessions) == 0 || !session_alive(s))
+       if (ARRAY_LENGTH(&sessions) == 0 || session_index(s, &i) != 0)
                return (NULL);
 
+       i = 0;
        do {
                if (i == ARRAY_LENGTH(&sessions) - 1)
                        i = 0;
@@ -207,7 +208,7 @@
        struct session *s2;
        u_int           i;
 
-       if (ARRAY_LENGTH(&sessions) == 0 || !session_alive(s))
+       if (ARRAY_LENGTH(&sessions) == 0 || session_index(s, &i) != 0)
                return (NULL);
 
        do {


------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to