chiark
/
gitweb
/
~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A simple fix of the bad wrapping bugs
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index 1a5ed4af81f7e1117d1767802d2da38fa4032fc9..b0ce18ff29f103cc89d157630ae8026309de88c6 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-1265,6
+1265,7
@@
draw_view_line(struct view *view, unsigned int lineno)
{
struct line *line;
bool selected = (view->offset + lineno == view->lineno);
{
struct line *line;
bool selected = (view->offset + lineno == view->lineno);
+ bool draw_ok;
assert(view_is_displayed(view));
assert(view_is_displayed(view));
@@
-1282,7
+1283,11
@@
draw_view_line(struct view *view, unsigned int lineno)
wclrtoeol(view->win);
}
wclrtoeol(view->win);
}
- return view->ops->draw(view, line, lineno, selected);
+ scrollok(view->win, FALSE);
+ draw_ok = view->ops->draw(view, line, lineno, selected);
+ scrollok(view->win, TRUE);
+
+ return draw_ok;
}
static void
}
static void