mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-06-30 13:14:56 -04:00
parent
671483674e
commit
5c816dc644
1 changed files with 3 additions and 1 deletions
4
csi.c
4
csi.c
|
|
@ -1396,7 +1396,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
case 22: { /* push window title */
|
case 22: { /* push window title */
|
||||||
/* 0 - icon + title, 1 - icon, 2 - title */
|
/* 0 - icon + title, 1 - icon, 2 - title */
|
||||||
unsigned what = vt_param_get(term, 1, 0);
|
unsigned what = vt_param_get(term, 1, 0);
|
||||||
if (what == 0 || what == 2) {
|
if ((what == 0 || what == 2) &&
|
||||||
|
tll_length(term->window_title_stack) < 128)
|
||||||
|
{
|
||||||
tll_push_back(
|
tll_push_back(
|
||||||
term->window_title_stack, xstrdup(term->window_title));
|
term->window_title_stack, xstrdup(term->window_title));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue