color: when syntax coloring is toggled back on, calculate multiline data

This will not catch all cases, but at least it will precalculate the
data when syntax coloring was toggled off (M-Y) while in one buffer
and then toggled back on after having switched to a new buffer.
This commit is contained in:
Benno Schulenberg 2020-05-01 14:08:55 +02:00
parent 1bbf07b27e
commit ad1331527e

View File

@ -1092,6 +1092,7 @@ void do_toggle(int flag)
break;
#ifdef ENABLE_COLOR
case NO_SYNTAX:
precalc_multicolorinfo();
refresh_needed = TRUE;
break;
#endif