diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-19 17:01:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-19 17:01:08 +0000 |
commit | 3ad695328f94e0197e84454f125c7f3464091d0c (patch) | |
tree | 111a817a7ffe3f04b1a367ad2dd1d63b194f942a /src/buffer.c | |
parent | 8b8d829faf04fe3706c04f7f7000054acd3254e7 (diff) |
patch 8.2.3624: when renaming a terminal buffer status text is not updatedv8.2.3624
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)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 29cfb8a993..2983ca9fe8 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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 |