From b26aaa7e4292f7201fdbade91a0e37752074f64a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Wed, 27 Apr 2016 17:45:36 +0200 Subject: [PATCH] screen: fix compilation when configured with --enable-tiny --- src/winio.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/winio.c b/src/winio.c index d8bbaa34..7881ee9f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2970,14 +2970,12 @@ 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) - update_line(old_current, 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 * old_current and needs to be horizontally scrolled. */ -- GitLab