mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.0420: Vim9: cannot interrupt a loop with CTRL-C
Problem: Vim9: cannot interrupt a loop with CTRL-C. Solution: Check for CTRL-C once in a while. Doesn't fully work yet.
This commit is contained in:
13
src/misc1.c
13
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)
|
||||
|
Reference in New Issue
Block a user