mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:8.2.0108: when sign text is changed a manual redraw is needed
Problem: When sign text is changed a manual redraw is needed. (Pontus
Lietzler)
Solution: Redraw automatically. (closes vim/vim#5455)
bf0acff012
This commit is contained in:
@@ -831,6 +831,14 @@ int sign_define_by_name(
|
||||
} else {
|
||||
sp_prev->sn_next = sp;
|
||||
}
|
||||
} else {
|
||||
// Signs may already exist, a redraw is needed in windows with a
|
||||
// non-empty sign list.
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_buffer->b_signlist != NULL) {
|
||||
redraw_buf_later(wp->w_buffer, NOT_VALID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// set values for a defined sign.
|
||||
|
Reference in New Issue
Block a user