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

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

Er, fix next and previous session functions to actually work, part 2.


Index: session.c
===================================================================
RCS file: /cvsroot/tmux/tmux/session.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- session.c   21 Jan 2011 23:52:36 -0000      1.86
+++ session.c   21 Jan 2011 23:53:01 -0000      1.87
@@ -180,7 +180,7 @@
        if (RB_EMPTY(&sessions) || !session_alive(s))
                return (NULL);
 
-       s2 = RB_NEXT(sessions, &sessions, s2);
+       s2 = RB_NEXT(sessions, &sessions, s);
        if (s2 == NULL)
                s2 = RB_MIN(sessions, &sessions);
        if (s2 == s)
@@ -197,7 +197,7 @@
        if (RB_EMPTY(&sessions) || !session_alive(s))
                return (NULL);
 
-       s2 = RB_PREV(sessions, &sessions, s2);
+       s2 = RB_PREV(sessions, &sessions, s);
        if (s2 == NULL)
                s2 = RB_MAX(sessions, &sessions);
        if (s2 == s)


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to