diff options
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c index 80aefd8126..b4b74f7ef5 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -2223,6 +2223,19 @@ 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; + ui_breakcheck(); + } +} + #if defined(VIM_BACKTICK) || defined(FEAT_EVAL) \ || (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ || defined(PROTO) |