Commit f9a6eb8b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Evaluating correctly whether to reset the multidata cache.

This fixes Savannah bug #46543.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
2015-11-29 Benno Schulenberg <bensberg@justemail.net>
* src/color.c (reset_multis): Evaluate correctly whether to reset
the multidata cache. This fixes Savannah bug #46543.
2015-11-28 Benno Schulenberg <bensberg@justemail.net> 2015-11-28 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (main): Allow the user full control over the values of * src/nano.c (main): Allow the user full control over the values of
MALLOC_CHECK_ and MALLOC_PERTURB_; nano shouldn't override these. MALLOC_CHECK_ and MALLOC_PERTURB_; nano shouldn't override these.
......
...@@ -457,7 +457,7 @@ void reset_multis(filestruct *fileptr, bool force) ...@@ -457,7 +457,7 @@ void reset_multis(filestruct *fileptr, bool force)
} else if (fileptr->multidata[tmpcolor->id] == CNONE) { } else if (fileptr->multidata[tmpcolor->id] == CNONE) {
if (nobegin && noend) if (nobegin && noend)
continue; continue;
} else if (fileptr->multidata[tmpcolor->id] & CBEGINBEFORE && !noend } else if (fileptr->multidata[tmpcolor->id] == CBEGINBEFORE && !noend
&& (nobegin || endmatch.rm_eo > startmatch.rm_eo)) { && (nobegin || endmatch.rm_eo > startmatch.rm_eo)) {
reset_multis_after(fileptr, tmpcolor->id); reset_multis_after(fileptr, tmpcolor->id);
continue; continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment