Merge pull request #22454 from bfredl/lspredraw

perf(lsp): only redraw the windows containing LSP tokens
This commit is contained in:
bfredl
2023-02-28 14:11:27 +01:00
committed by GitHub
3 changed files with 148 additions and 18 deletions

View File

@@ -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);
}