diff options
author | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-20 11:19:22 +0200 |
---|---|---|
committer | Andrej Zieger <jerdna-regeiz@users.noreply.github.com> | 2019-05-26 19:32:32 +0200 |
commit | e09f3baed8abc5fb821fb9b6226ad232d8e2f4c7 (patch) | |
tree | 54005ff22d43bab9955109609c1498583e4d599c /src/nvim/screen.c | |
parent | f43900f6865cb9f7b70621b090194448920d66e5 (diff) | |
download | rneovim-e09f3baed8abc5fb821fb9b6226ad232d8e2f4c7.tar.gz rneovim-e09f3baed8abc5fb821fb9b6226ad232d8e2f4c7.tar.bz2 rneovim-e09f3baed8abc5fb821fb9b6226ad232d8e2f4c7.zip |
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)
https://github.com/vim/vim/commit/27a472c32ed5b5298bca50864570a4a71ec1d204
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 31386ebd42..0f29ef09ae 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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); } } |