From 06318455c15e05651595508f4f693688a2c6cf12 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Wed, 16 Aug 2017 20:04:41 +0200 Subject: [PATCH] Textviewer fix: left arrows in unused lines --- source/godmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/godmode.c b/source/godmode.c index a12de6b..e074299 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -426,7 +426,7 @@ u32 FileTextViewer(const char* path) { u32 llen = LineLen(text, len, ww, ptr); u32 ncpy = ((int) llen < off_disp) ? 0 : (llen - off_disp); if (ncpy > llen_disp) ncpy = llen_disp; - bool al = !ww && off_disp; + bool al = !ww && off_disp && (ptr != ptr_next); bool ar = !ww && (llen > off_disp + llen_disp); // build text string