diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-21 17:30:56 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-21 23:30:56 +0200 |
commit | 8d66b6091b9a20e6866f3d6710b59381c947cd8c (patch) | |
tree | e63a0e5f584097de37056a60a5017888dae1764a | |
parent | 27fb8933f577010a997a3c8a55d55c2186a267cb (diff) | |
download | rneovim-8d66b6091b9a20e6866f3d6710b59381c947cd8c.tar.gz rneovim-8d66b6091b9a20e6866f3d6710b59381c947cd8c.tar.bz2 rneovim-8d66b6091b9a20e6866f3d6710b59381c947cd8c.zip |
vim-patch:8.1.1724: too much overhead checking for CTRL-C #10564
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 vim/vim#4708)
https://github.com/vim/vim/commit/b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79
-rw-r--r-- | src/nvim/misc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 5a5bd16b98..463c29405b 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2735,7 +2735,7 @@ void preserve_exit(void) */ #ifndef BREAKCHECK_SKIP -# define BREAKCHECK_SKIP 32 +# define BREAKCHECK_SKIP 1000 #endif static int breakcheck_count = 0; |