mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
terminal: Redraw statusline on title change #8973
The statusline may incorporate b:term_title, so redraw it when that title changes. Introduce a new function status_redraw_buf to redraw windows associated with the current buffer.
This commit is contained in:

committed by
Justin M. Keyes

parent
7862c3ae3e
commit
8240b8b596
@@ -4588,14 +4588,18 @@ void status_redraw_all(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* mark all status lines of the current buffer for redraw
|
||||
*/
|
||||
/// Marks all status lines of the current buffer for redraw.
|
||||
void status_redraw_curbuf(void)
|
||||
{
|
||||
status_redraw_buf(curbuf);
|
||||
}
|
||||
|
||||
/// Marks all status lines of the specified buffer for redraw.
|
||||
void status_redraw_buf(buf_T *buf)
|
||||
{
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_status_height != 0 && wp->w_buffer == curbuf) {
|
||||
wp->w_redr_status = TRUE;
|
||||
if (wp->w_status_height != 0 && wp->w_buffer == buf) {
|
||||
wp->w_redr_status = true;
|
||||
redraw_later(VALID);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user