diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-21 14:50:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-21 14:50:21 +0200 |
commit | b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79 (patch) | |
tree | b51dac0c46871f62cfc202afd2b5835506108efc /src/misc1.c | |
parent | 24582007294b0db3be9669d3b583ea45fc4f19b8 (diff) | |
download | vim-git-b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79.tar.gz |
patch 8.1.1724: too much overhead checking for CTRL-C while processing textv8.1.1724
Problem: Too much overhead checking for CTRL-C while processing text.
Solution: Increase BREAKCHECK_SKIP. Remove the difference for when built
with the GUI. (suggested by Andy Massimino, closes #4708)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/misc1.c b/src/misc1.c index f5549fdc5..7df395431 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3182,11 +3182,7 @@ vim_fexists(char_u *fname) */ #ifndef BREAKCHECK_SKIP -# ifdef FEAT_GUI /* assume the GUI only runs on fast computers */ -# define BREAKCHECK_SKIP 200 -# else -# define BREAKCHECK_SKIP 32 -# endif +# define BREAKCHECK_SKIP 1000 #endif static int breakcheck_count = 0; |