Skip to content

Commit

Permalink
Merge branch 'obsd-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAdam committed Jul 19, 2023
2 parents 715f39a + b13c230 commit fda3937
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion session.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,12 @@ session_renumber_windows(struct session *s)
memcpy(&old_lastw, &s->lastw, sizeof old_lastw);
TAILQ_INIT(&s->lastw);
TAILQ_FOREACH(wl, &old_lastw, sentry) {
wl->flags &= ~WINLINK_VISITED;
wl_new = winlink_find_by_window(&s->windows, wl->window);
if (wl_new != NULL)
if (wl_new != NULL) {
TAILQ_INSERT_TAIL(&s->lastw, wl_new, sentry);
wl_new->flags |= WINLINK_VISITED;
}
}

/* Set the current window. */
Expand Down

0 comments on commit fda3937

Please sign in to comment.