Precalculating the multiline-regex cache data for each buffer,
not just for the first. This fixes Savannah bug #46511. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -456,9 +456,14 @@ void display_buffer(void)
|
||||
titlebar(NULL);
|
||||
|
||||
#ifndef DISABLE_COLOR
|
||||
/* Make sure we're using the buffer's associated colors, if
|
||||
* applicable. */
|
||||
/* Make sure we're using the buffer's associated colors. */
|
||||
color_init();
|
||||
|
||||
/* If there are multiline coloring regexes, and there is no
|
||||
* multiline cache data yet, precalculate it now. */
|
||||
if (openfile->syntax && openfile->syntax->nmultis > 0 &&
|
||||
openfile->fileage->multidata == NULL)
|
||||
precalc_multicolorinfo();
|
||||
#endif
|
||||
|
||||
/* Update the edit window. */
|
||||
|
||||
Reference in New Issue
Block a user