* 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:
Chris Allegretta
2009-01-25 07:25:17 +00:00
parent 0dc26dcd09
commit d47d8cd450
9 changed files with 115 additions and 28 deletions

View File

@@ -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. */