pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70165fd
)
fixed overlapping of wrapped lines for #15
author
Michael Göhler
<somebody.here@gmx.de>
Mon, 6 Oct 2014 19:38:35 +0000
(21:38 +0200)
committer
Michael Göhler
<somebody.here@gmx.de>
Mon, 6 Oct 2014 19:38:35 +0000
(21:38 +0200)
src/viewer.c
patch
|
blob
|
history
diff --git
a/src/viewer.c
b/src/viewer.c
index
09a0498
..
3e4284b
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-274,8
+274,8
@@
int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) {
// print lines
while(line) {
add_line(content, l, (COLS - max_cols) / 2, line, max_cols, colors);
+ l += (line->length / COLS) + 1;
line = line->next;
- l++;
}
// make content visible