commit ad1331527e4971a4ec560b9d150d75a910d21587
parent 1bbf07b27e790fb224e629f9cf103974659e6885
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 1 May 2020 14:08:55 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1092,6 +1092,7 @@ void do_toggle(int flag)
break;
#ifdef ENABLE_COLOR
case NO_SYNTAX:
+ precalc_multicolorinfo();
refresh_needed = TRUE;
break;
#endif