summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c571d6)
raw | patch | inline | side by side (parent: 3c571d6)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 11 Sep 2006 20:10:08 +0000 (22:10 +0200) | ||
committer | Jonas 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.
wraps around on the last line and causes the window to scroll.
tig.c | patch | blob | history |
index e48af7efabc18f837097e8e5abaec8794536f430..a5255cd39de29da90218293fe9239471a860bfdf 100644 (file)
--- a/tig.c
+++ b/tig.c
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);
}