Reset title count when freeing titles, GitHub issue 5429 from Brett

Smith.
This commit is contained in:
nicm
2026-07-26 09:17:30 +00:00
committed by tmux update bot
parent afb95f3134
commit 55169f1275

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: screen.c,v 1.105 2026/06/29 18:17:28 nicm Exp $ */
/* $OpenBSD: screen.c,v 1.106 2026/07/26 09:17:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -70,6 +70,7 @@ screen_free_titles(struct screen *s)
free(s->titles);
s->titles = NULL;
s->ntitles = 0;
}
/* Create a new screen. */