0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.3624: when renaming a terminal buffer status text is not updated

Problem:    When renaming a terminal buffer the status text is not updated.
Solution:   Clear the cached status text when renaming a terminal buffer.
            (closes #9162)
This commit is contained in:
Bram Moolenaar
2021-11-19 17:01:08 +00:00
parent 8b8d829faf
commit 3ad695328f
5 changed files with 29 additions and 0 deletions

View File

@@ -4637,6 +4637,15 @@ term_get_status_text(term_T *term)
return term->tl_status_text;
}
/*
* Clear the cached value of the status text.
*/
void
term_clear_status_text(term_T *term)
{
VIM_CLEAR(term->tl_status_text);
}
/*
* Mark references in jobs of terminals.
*/