mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.5128: syntax disabled when using synID() in searchpair() skip expr
Problem: Syntax highlighting disabled when using synID() in searchpair() skip expression and it times out. (Jaehwang Jung) Solution: Add the redrawtime_limit_set flag. (closes #10562)
This commit is contained in:
@@ -3150,8 +3150,8 @@ syn_regexec(
|
||||
colnr_T col,
|
||||
syn_time_T *st UNUSED)
|
||||
{
|
||||
int r;
|
||||
int timed_out = FALSE;
|
||||
int r;
|
||||
int timed_out = FALSE;
|
||||
#ifdef FEAT_PROFILE
|
||||
proftime_T pt;
|
||||
|
||||
@@ -3181,7 +3181,7 @@ syn_regexec(
|
||||
}
|
||||
#endif
|
||||
#ifdef FEAT_RELTIME
|
||||
if (timed_out && !syn_win->w_s->b_syn_slow)
|
||||
if (timed_out && redrawtime_limit_set && !syn_win->w_s->b_syn_slow)
|
||||
{
|
||||
syn_win->w_s->b_syn_slow = TRUE;
|
||||
msg(_("'redrawtime' exceeded, syntax highlighting disabled"));
|
||||
|
Reference in New Issue
Block a user