screen: fix compilation when configured with --enable-tiny
parent
9330aa60a5
commit
b26aaa7e42
12
src/winio.c
12
src/winio.c
|
@ -2970,13 +2970,11 @@ void edit_redraw(filestruct *old_current)
|
|||
foo = (foo->lineno > openfile->current->lineno) ?
|
||||
foo->prev : foo->next;
|
||||
}
|
||||
}
|
||||
#endif /* !NANO_TINY */
|
||||
|
||||
/* Update old_current only if it differs from current, and if not
|
||||
* already done above, and if it was horizontally scrolled. */
|
||||
if (old_current != openfile->current && !openfile->mark_set &&
|
||||
get_page_start(was_pww) > 0)
|
||||
} else
|
||||
#endif
|
||||
/* Otherwise, update old_current only if it differs from current
|
||||
* and was horizontally scrolled. */
|
||||
if (old_current != openfile->current && get_page_start(was_pww) > 0)
|
||||
update_line(old_current, 0);
|
||||
|
||||
/* Update current if we've changed page, or if it differs from
|
||||
|
|
Loading…
Reference in New Issue