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)
diff --git a/src/terminal.c b/src/terminal.c
index fb8b288..c00302d 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4638,6 +4638,15 @@
}
/*
+ * 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.
*/
int