Mercurial > vim
comparison src/proto/diff.pro @ 17851:ba63a184e6b6 v8.1.1922
patch 8.1.1922: in diff mode global operations can be very slow
Commit: https://github.com/vim/vim/commit/4f57eefe1e84b5a90e08474092ea6fc8825ad5c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 24 20:54:19 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Aug 2019 21:00:06 +0200 |
parents | f562b9fbd0d3 |
children | 5c8906f653f5 |
comparison
equal
deleted
inserted
replaced
17850:513f2890d474 | 17851:ba63a184e6b6 |
---|---|
2 void diff_buf_delete(buf_T *buf); | 2 void diff_buf_delete(buf_T *buf); |
3 void diff_buf_adjust(win_T *win); | 3 void diff_buf_adjust(win_T *win); |
4 void diff_buf_add(buf_T *buf); | 4 void diff_buf_add(buf_T *buf); |
5 void diff_invalidate(buf_T *buf); | 5 void diff_invalidate(buf_T *buf); |
6 void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); | 6 void diff_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); |
7 void diff_redraw(int dofold); | |
7 int diff_internal(void); | 8 int diff_internal(void); |
8 void ex_diffupdate(exarg_T *eap); | 9 void ex_diffupdate(exarg_T *eap); |
9 void ex_diffpatch(exarg_T *eap); | 10 void ex_diffpatch(exarg_T *eap); |
10 void ex_diffsplit(exarg_T *eap); | 11 void ex_diffsplit(exarg_T *eap); |
11 void ex_diffthis(exarg_T *eap); | 12 void ex_diffthis(exarg_T *eap); |