0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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

@@ -3453,6 +3453,11 @@ buf_name_changed(buf_T *buf)
if (buf->b_ml.ml_mfp != NULL)
ml_setname(buf);
#ifdef FEAT_TERMINAL
if (buf->b_term != NULL)
term_clear_status_text(buf->b_term);
#endif
if (curwin->w_buffer == buf)
check_arg_idx(curwin); // check file name for arg list
#ifdef FEAT_TITLE