1
0
forked from aniani/vim

patch 9.0.0993: display errors when adding or removing text property type

Problem:    Display errors when adding or removing text property type.
Solution:   Perform a full redraw.  Only use text properties for which the
            type is defined. (closes #11655)
This commit is contained in:
Bram Moolenaar
2022-12-02 20:46:26 +00:00
parent 500c444283
commit 89469d157a
11 changed files with 126 additions and 18 deletions

View File

@@ -645,6 +645,20 @@ changed_window_setting_win(win_T *wp)
redraw_win_later(wp, UPD_NOT_VALID);
}
/*
* Call changed_window_setting_win() for every window containing "buf".
*/
void
changed_window_setting_buf(buf_T *buf)
{
tabpage_T *tp;
win_T *wp;
FOR_ALL_TAB_WINDOWS(tp, wp)
if (wp->w_buffer == buf)
changed_window_setting_win(wp);
}
/*
* Set wp->w_topline to a certain number.
*/