Code

Remove some old cruft that was clearing hidden lines at the end
authorJonas Fonseca <fonseca@diku.dk>
Mon, 11 Sep 2006 20:10:08 +0000 (22:10 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Mon, 11 Sep 2006 20:10:08 +0000 (22:10 +0200)
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

diff --git a/tig.c b/tig.c
index e48af7efabc18f837097e8e5abaec8794536f430..a5255cd39de29da90218293fe9239471a860bfdf 100644 (file)
--- 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);
        }