From c610fcf3340b8ca182a6978e3daa739102fd48dd Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 13 Jun 2017 17:07:23 +0200 Subject: [PATCH] Off by one, also 200 instead of 30 --- src/viewer/text/draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/viewer/text/draw.c b/src/viewer/text/draw.c index 14ee5156..e633c24b 100644 --- a/src/viewer/text/draw.c +++ b/src/viewer/text/draw.c @@ -294,7 +294,7 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active) int st = int_max(vx, 0); int en = int_min(doc_view->document->data[y].length, box->width + vx); - int max = int_min(en, st + 30); + int max = int_min(en, st + 200); if (en - st > 0) { draw_line(term, box->x + st - vx, box->y + y - vy, @@ -308,11 +308,12 @@ draw_doc(struct session *ses, struct document_view *doc_view, int active) break; } } - for (j = st + 1; j < i; j++) { + + for (j = st; j < i; j++) { draw_space(term, box->x + j - vx, box->y + y - vy, first); } - for (i = en ? en : 1; i < box->width + vx - 1; i++) { + for (i = en ? en : 0; i < box->width + vx; i++) { draw_space(term, box->x + i - vx, box->y + y - vy, last); } -- 2.11.4.GIT