From: Jonas Fonseca Date: Mon, 11 Sep 2006 20:10:08 +0000 (+0200) Subject: Remove some old cruft that was clearing hidden lines at the end X-Git-Tag: tig-0.5~30 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/3fd9297e0568c9c88190beff3ac380e49942e514 Remove some old cruft that was clearing hidden lines at the end This was used for the first attempt at fixing the bug where the cursor wraps around on the last line and causes the window to scroll. --- diff --git a/tig.c b/tig.c index e48af7e..a5255cd 100644 --- a/tig.c +++ b/tig.c @@ -1464,12 +1464,6 @@ do_scroll_view(struct view *view, int lines, bool redraw) draw_view_line(view, 0); } else if (view->lineno >= view->offset + view->height) { - if (view->lineno == view->offset + view->height) { - /* Clear the hidden line so it doesn't show if the view - * is scrolled up. */ - wmove(view->win, view->height, 0); - wclrtoeol(view->win); - } view->lineno = view->offset + view->height - 1; draw_view_line(view, view->lineno - view->offset); }