mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 21:54:23 +00:00
Reset title count when freeing titles, GitHub issue 5429 from Brett
Smith.
This commit is contained in:
3
screen.c
3
screen.c
@@ -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>
|
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -70,6 +70,7 @@ screen_free_titles(struct screen *s)
|
|||||||
|
|
||||||
free(s->titles);
|
free(s->titles);
|
||||||
s->titles = NULL;
|
s->titles = NULL;
|
||||||
|
s->ntitles = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new screen. */
|
/* Create a new screen. */
|
||||||
|
|||||||
Reference in New Issue
Block a user