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

screen: fix compilation when configured with --enable-tiny

No related merge requests found
Showing with 6 additions and 8 deletions
+6 -8
...@@ -2970,14 +2970,12 @@ void edit_redraw(filestruct *old_current) ...@@ -2970,14 +2970,12 @@ void edit_redraw(filestruct *old_current)
foo = (foo->lineno > openfile->current->lineno) ? foo = (foo->lineno > openfile->current->lineno) ?
foo->prev : foo->next; foo->prev : foo->next;
} }
} } else
#endif /* !NANO_TINY */ #endif
/* Otherwise, update old_current only if it differs from current
/* Update old_current only if it differs from current, and if not * and was horizontally scrolled. */
* already done above, and if it was horizontally scrolled. */ if (old_current != openfile->current && get_page_start(was_pww) > 0)
if (old_current != openfile->current && !openfile->mark_set && update_line(old_current, 0);
get_page_start(was_pww) > 0)
update_line(old_current, 0);
/* Update current if we've changed page, or if it differs from /* Update current if we've changed page, or if it differs from
* old_current and needs to be horizontally scrolled. */ * old_current and needs to be horizontally scrolled. */
......
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