diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-02 20:46:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-02 20:46:26 +0000 |
commit | 89469d157aea01513bde826b4519dd6b5fbceae4 (patch) | |
tree | 50c505cfc7722e05f227d04f0ce8f4241b7b0448 /src/move.c | |
parent | 500c4442834363e02541da564f0b87b82d5783cd (diff) |
patch 9.0.0993: display errors when adding or removing text property typev9.0.0993
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)
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c index 42054455bb..14667f3279 100644 --- a/src/move.c +++ b/src/move.c @@ -646,6 +646,20 @@ changed_window_setting_win(win_T *wp) } /* + * 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. */ void |