From 3fd9297e0568c9c88190beff3ac380e49942e514 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 11 Sep 2006 22:10:08 +0200 Subject: [PATCH] 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. --- tig.c | 6 ------ 1 file changed, 6 deletions(-) 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); } -- 2.30.2