summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0087dd)
raw | patch | inline | side by side (parent: a0087dd)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 11 Sep 2006 21:20:52 +0000 (23:20 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 11 Sep 2006 21:44:52 +0000 (23:44 +0200) |
This redraw thing should be fixed in move_view since this is not relevant
for scroll_view.
for scroll_view.
tig.c | patch | blob | history |
index 7dba19d2f9fe88c4f707ed1702734f425ce6cb55..25c423c5fd70fb5449407e46745625491cb9be78 100644 (file)
--- a/tig.c
+++ b/tig.c
/* Scrolling backend */
static void
-do_scroll_view(struct view *view, int lines, bool redraw)
+do_scroll_view(struct view *view, int lines)
{
bool redraw_current_line = FALSE;
- assert(view_is_displayed(view));
-
/* The rendering expects the new offset. */
view->offset += lines;
draw_view_line(view, view->lineno - view->offset);
}
- if (!redraw)
- return;
-
redrawwin(view->win);
wrefresh(view->win);
report("");
{
int lines = 1;
+ assert(view_is_displayed(view));
+
switch (request) {
case REQ_SCROLL_PAGE_DOWN:
lines = view->height;
die("request %d not handled in switch", request);
}
- do_scroll_view(view, lines, TRUE);
+ do_scroll_view(view, lines);
}
/* Cursor moving */
}
}
- do_scroll_view(view, steps, redraw);
+ do_scroll_view(view, steps);
return;
}
/* Scroll the view that was split if the current line is
* outside the new limited view. */
- do_scroll_view(prev, lines, TRUE);
+ do_scroll_view(prev, lines);
}
if (prev && view != prev) {