summaryrefslogtreecommitdiffstats
path: root/src/proto/diff.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-24 20:54:19 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-24 20:54:19 +0200
commit4f57eefe1e84b5a90e08474092ea6fc8825ad5c9 (patch)
tree5afd78a40e21a0375a423acbf3ef990e32ac0cd6 /src/proto/diff.pro
parenta4208966fb289a505ebdef62bbc37c214069bab4 (diff)
patch 8.1.1922: in diff mode global operations can be very slowv8.1.1922
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.
Diffstat (limited to 'src/proto/diff.pro')
-rw-r--r--src/proto/diff.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/diff.pro b/src/proto/diff.pro
index d6ab221da7..2ab6c546f8 100644
--- a/src/proto/diff.pro
+++ b/src/proto/diff.pro
@@ -4,6 +4,7 @@ void diff_buf_adjust(win_T *win);
void diff_buf_add(buf_T *buf);
void diff_invalidate(buf_T *buf);
void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after);
+void diff_redraw(int dofold);
int diff_internal(void);
void ex_diffupdate(exarg_T *eap);
void ex_diffpatch(exarg_T *eap);