mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
perf(lsp): only redraw the windows containing LSP tokens
redraw! redraws the entire screen instead of just the windows with the buffer which were actually changed. I considered trying to calculating the range for the delta but it looks tricky. Could a follow-up.
This commit is contained in:
@@ -248,6 +248,9 @@ void nvim__buf_redraw_range(Buffer buffer, Integer first, Integer last, Error *e
|
||||
if (!buf) {
|
||||
return;
|
||||
}
|
||||
if (last < 0) {
|
||||
last = buf->b_ml.ml_line_count;
|
||||
}
|
||||
|
||||
redraw_buf_range_later(buf, (linenr_T)first + 1, (linenr_T)last);
|
||||
}
|
||||
|
Reference in New Issue
Block a user