diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-13 02:08:14 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-13 02:08:14 +0000 |
commit | 2d82567070c36fe7229d38c0ad328014715d6f4a (patch) | |
tree | a3c3fe6bca8446c9fcdc770219f9f6ec28ea4635 /session.c | |
parent | 588ebb5393902fc02cb2eab010753d9649761325 (diff) |
Er, fix next and previous session functions to actually work, part 2.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,7 +181,7 @@ session_next_session(struct session *s) 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) @@ -198,7 +198,7 @@ session_previous_session(struct session *s) 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) |