* First pass at some caching of caching color info. Right now it's only for
multi-line regexes but this may not be enough to increase performance. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4351 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -311,6 +311,10 @@ filestruct *read_line(char *buf, filestruct *prevnode, bool
|
||||
fileptr->data[buf_len - 1] = '\0';
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_COLOR
|
||||
fileptr->multiswatching = NULL;
|
||||
#endif
|
||||
|
||||
if (*first_line_ins) {
|
||||
/* Special case: We're inserting with the cursor on the first
|
||||
* line. */
|
||||
|
||||
Reference in New Issue
Block a user