tweaks: don't bother comparing virgin multidata with current situation
The initialization of -1 cannot possibly match with NOTHING or WHOLELINE or the other available values. (Also, put in a warning, as I don't think an onscreen line without a multidata cache can occur at all.)master
parent
3ea2694d9c
commit
36618f1dca
|
@ -253,8 +253,12 @@ void check_the_multis(linestruct *line)
|
|||
if (openfile->syntax == NULL || openfile->syntax->nmultis == 0)
|
||||
return;
|
||||
|
||||
if (line->multidata == NULL)
|
||||
set_up_multicache(line);
|
||||
if (line->multidata == NULL) {
|
||||
statusline(ALERT, "Onscreen line without multidata?");
|
||||
napms(1200);
|
||||
refresh_needed = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
for (ink = openfile->syntax->color; ink != NULL; ink = ink->next) {
|
||||
/* If it's not a multiline regex, skip. */
|
||||
|
|
Loading…
Reference in New Issue