mirror of
https://github.com/neovim/neovim
synced 2025-07-18 02:01:46 +00:00
fix(tui): check for title support correctly (#34866)
(cherry picked from commit e65c0a0810
)
This commit is contained in:
committed by
github-actions[bot]
parent
388b559848
commit
6f8efea940
@ -378,6 +378,7 @@ static void terminfo_start(TUIData *tui)
|
|||||||
tui->unibi_ext.reset_scroll_region = -1;
|
tui->unibi_ext.reset_scroll_region = -1;
|
||||||
tui->unibi_ext.set_cursor_style = -1;
|
tui->unibi_ext.set_cursor_style = -1;
|
||||||
tui->unibi_ext.reset_cursor_style = -1;
|
tui->unibi_ext.reset_cursor_style = -1;
|
||||||
|
tui->unibi_ext.set_title = -1;
|
||||||
tui->unibi_ext.set_underline_style = -1;
|
tui->unibi_ext.set_underline_style = -1;
|
||||||
tui->unibi_ext.set_underline_color = -1;
|
tui->unibi_ext.set_underline_color = -1;
|
||||||
tui->unibi_ext.sync = -1;
|
tui->unibi_ext.sync = -1;
|
||||||
@ -1634,7 +1635,7 @@ static void tui_suspend_cb(TUIData *tui)
|
|||||||
|
|
||||||
void tui_set_title(TUIData *tui, String title)
|
void tui_set_title(TUIData *tui, String title)
|
||||||
{
|
{
|
||||||
if (!unibi_get_ext_str(tui->ut, (unsigned)tui->unibi_ext.set_title)) {
|
if (tui->unibi_ext.set_title == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (title.size > 0) {
|
if (title.size > 0) {
|
||||||
|
Reference in New Issue
Block a user