mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
vim-patch:8.1.0709: windows are updated for every added/deleted sign
Problem: Windows are updated for every added/deleted sign.
Solution: Do not call update_debug_sign(). Only redraw when the line with
the sign is visible. (idea from neovim vim/vim#9479)
27a472c32e
This commit is contained in:
@@ -221,7 +221,8 @@ void redraw_buf_later(buf_T *buf, int type)
|
||||
void redraw_buf_line_later(buf_T *buf, linenr_T line)
|
||||
{
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_buffer == buf) {
|
||||
if (wp->w_buffer == buf
|
||||
&& line >= wp->w_topline && line < wp->w_botline) {
|
||||
redrawWinline(wp, line);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user