aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-07-19 18:41:40 +0200
committerGitHub <noreply@github.com>2020-07-19 18:41:40 +0200
commitdaa5bffd93e19987980705990615c730fe07ea5f (patch)
tree38e422d674d51d0a4c0fb49a4fb2d0423ec9d6d7 /src/nvim/misc1.c
parent8e350c1c6922f9c678e83d97227e7edd84967571 (diff)
parent140a372017c7649e156742622c9ccc1cd8b794c1 (diff)
downloadrneovim-daa5bffd93e19987980705990615c730fe07ea5f.tar.gz
rneovim-daa5bffd93e19987980705990615c730fe07ea5f.tar.bz2
rneovim-daa5bffd93e19987980705990615c730fe07ea5f.zip
Merge pull request #12611 from janlazo/vim-8.0.1531
vim-patch:8.0.{1531,1544,1589,1591,1712,1745,1747},8.1.{819},8.2.{420,539,893,894,895,899,1114,1118,1169,1170,1171,1172,1173,1177,1179,1180,1181,1187,1188,1196,1198,1211,1214,1215,1222}
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index e10770b6bd..6dafbafb3e 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -1029,6 +1029,15 @@ void fast_breakcheck(void)
}
}
+// Like line_breakcheck() but check 100 times less often.
+void veryfast_breakcheck(void)
+{
+ if (++breakcheck_count >= BREAKCHECK_SKIP * 100) {
+ breakcheck_count = 0;
+ os_breakcheck();
+ }
+}
+
/// os_call_shell() wrapper. Handles 'verbose', :profile, and v:shell_error.
/// Invalidates cached tags.
///