vim-patch:8.1.1922: in diff mode global operations can be very slow

Problem:    In diff mode global operations can be very slow.
Solution:   Do not call diff_redraw() many times, call it once when redrawing.
            And also don't update folds multiple times.
4f57eefe1e
This commit is contained in:
Jan Edmund Lazo
2019-11-16 12:31:46 -05:00
parent d3ef88db63
commit 7274f5c177
4 changed files with 15 additions and 2 deletions

View File

@@ -286,6 +286,11 @@ int update_screen(int type)
return FAIL;
}
// May have postponed updating diffs.
if (need_diff_redraw) {
diff_redraw(true);
}
if (must_redraw) {
if (type < must_redraw) /* use maximal type */
type = must_redraw;