From 698e2f33adf0ca6ada826a61b1db0c2dfce3bc3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Mon, 6 Oct 2014 21:38:35 +0200 Subject: [PATCH] fixed overlapping of wrapped lines for #15 --- src/viewer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.c b/src/viewer.c index 09a0498..3e4284b 100644 --- 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 -- 2.20.1