* src/text.c (do_deletion), src/nano.c (do_input): Let reset_multis()
figure out whether after a deletion a full refresh is needed, before
doing a redraw of the current line. This fixes Savannah bug #46794.
+ * src/nano.c (do_output): Let reset_multis() figure out whether after
+ an addition a full refresh is needed (for multiline-regexes' sake),
+ instead of doing it always.
2016-01-02 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_spell, do_formatter): Plug three tiny memory leaks.
#endif
}
-#ifndef DISABLE_COLOR
- /* If syntax highlighting is turned on and there are multiline regexes,
- * the edit window will need to be refreshed. */
- if (!ISSET(NO_COLOR_SYNTAX) && openfile->syntax &&
- openfile->syntax->nmultis > 0)
- edit_refresh_needed = TRUE;
-#endif
-
#ifndef NANO_TINY
/* Well, we might also need a full refresh if we've changed the
* line length to be a new multiple of COLS. */
#ifndef DISABLE_COLOR
reset_multis(openfile->current, FALSE);
#endif
+
if (edit_refresh_needed == TRUE) {
edit_refresh();
edit_refresh_needed = FALSE;