From 8d66b6091b9a20e6866f3d6710b59381c947cd8c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 21 Jul 2019 17:30:56 -0400 Subject: 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 --- src/nvim/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/misc1.c') 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; -- cgit