diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -319,7 +319,7 @@ session_next_activity(struct session *s, struct winlink *wl) break; if (session_alert_has(s, wl, WINDOW_CONTENT)) break; - wl = winlink_next(&s->windows, wl); + wl = winlink_next(wl); } return (wl); } @@ -333,7 +333,7 @@ session_next(struct session *s, int activity) if (s->curw == NULL) return (-1); - wl = winlink_next(&s->windows, s->curw); + wl = winlink_next(s->curw); if (activity) wl = session_next_activity(s, wl); if (wl == NULL) { @@ -360,7 +360,7 @@ session_previous_activity(struct session *s, struct winlink *wl) break; if (session_alert_has(s, wl, WINDOW_CONTENT)) break; - wl = winlink_previous(&s->windows, wl); + wl = winlink_previous(wl); } return (wl); } @@ -374,7 +374,7 @@ session_previous(struct session *s, int activity) if (s->curw == NULL) return (-1); - wl = winlink_previous(&s->windows, s->curw); + wl = winlink_previous(s->curw); if (activity) wl = session_previous_activity(s, wl); if (wl == NULL) { |