diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 19:16:43 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 19:16:43 +0200 |
commit | 9ddcd7787f78466f1f43261c6c3d52da18ae70ad (patch) | |
tree | eb04ba6b73b0e9b6d0c2ff5d2c7a4971e0cdcb46 | |
parent | 7d693e1c7e425b366e7ae9e5f839daa134e72188 (diff) | |
download | mblaze-9ddcd7787f78466f1f43261c6c3d52da18ae70ad.tar.gz mblaze-9ddcd7787f78466f1f43261c6c3d52da18ae70ad.tar.xz mblaze-9ddcd7787f78466f1f43261c6c3d52da18ae70ad.zip |
mscan: fix truncation logic
-rw-r--r-- | mscan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mscan.c b/mscan.c index bb64aed..7a94c55 100644 --- a/mscan.c +++ b/mscan.c @@ -141,11 +141,12 @@ oneline(char *file) printf(" "); int z; if (indent > 18) { - printf("..%2d..", indent/2); - indent = 14; + printf("..%2d.. ", indent/2); + indent = 20; + } else { + for (z = 0; z < indent; z++) + printf(" "); } - for (z = 0; z < indent; z++) - printf(" "); u8putstr(stdout, subjdec, cols-38-indent, 0); printf("\n"); |