]> git.webhop.me Git - shellexec.git/commitdiff
- text.c: fix display of tabs and colors
authorsvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 20:33:55 +0000 (22:33 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 20:33:55 +0000 (22:33 +0200)
text.c

diff --git a/text.c b/text.c
index 32cd4899dd31f583c60c87a5e2c16f8f87d889e6..dd000d267fe9d7ceac4ee63dc7aeeb6576389633 100644 (file)
--- a/text.c
+++ b/text.c
@@ -402,7 +402,9 @@ void RenderString(char *string, int sx, int sy, int maxwidth, int layout, int si
                                                {
                                                        sx=((sx/TABULATOR)+1)*TABULATOR;
                                                }
+                                       break;
                                }
+                               rptr++;
                        }
                        else
                        {
@@ -410,7 +412,6 @@ void RenderString(char *string, int sx, int sy, int maxwidth, int layout, int si
                                        return; /* string > maxwidth */
                                sx += charwidth;
                        }
-                       //rptr++;
                }
 }