~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
1a5ed4a
..
b0ce18f
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