summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c571930)
raw | patch | inline | side by side (parent: c571930)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 30 Jan 2009 08:03:11 +0000 (09:03 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 30 Jan 2009 08:10:19 +0000 (09:10 +0100) |
Should lead to fewer calls.
tig.c | patch | blob | history |
index f8d3eae023286c770b4d1e36d38ef2ea26854578..c103062ff3d09c381ff1de7ec427c699e43c1a78 100644 (file)
--- a/tig.c
+++ b/tig.c
{
struct line *line;
bool selected = (view->offset + lineno == view->lineno);
- bool draw_ok;
assert(view_is_displayed(view));
view->ops->select(view, line);
}
- scrollok(view->win, FALSE);
- draw_ok = view->ops->draw(view, line, lineno);
- scrollok(view->win, TRUE);
-
- return draw_ok;
+ return view->ops->draw(view, line, lineno);
}
static void
if (!view->win)
die("Failed to create %s view", view->name);
- scrollok(view->win, TRUE);
+ scrollok(view->win, FALSE);
view->title = newwin(1, 0, offset + view->height, 0);
if (!view->title)
int line = lines > 0 ? view->height - lines : 0;
int end = line + ABS(lines);
+ scrollok(view->win, TRUE);
wscrl(view->win, lines);
+ scrollok(view->win, FALSE);
for (; line < end; line++) {
if (!draw_view_line(view, line))