diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 18:47:18 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 18:47:18 +0200 |
commit | f7535f2cec1dd6ce4d4c966510a468a4fea1e140 (patch) | |
tree | f2066095d6fe28e4ce28ec7b3064b0b1f29592d2 /mscan.c | |
parent | d97e93bd261bdc0489b2b22f5dc63044eba6be79 (diff) | |
download | mblaze-f7535f2cec1dd6ce4d4c966510a468a4fea1e140.tar.gz mblaze-f7535f2cec1dd6ce4d4c966510a468a4fea1e140.tar.xz mblaze-f7535f2cec1dd6ce4d4c966510a468a4fea1e140.zip |
mscan: truncate deep indents
Diffstat (limited to 'mscan.c')
-rw-r--r-- | mscan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mscan.c b/mscan.c index a410909..bb64aed 100644 --- a/mscan.c +++ b/mscan.c @@ -140,6 +140,10 @@ oneline(char *file) u8putstr(stdout, fromdec, 17, 1); printf(" "); int z; + if (indent > 18) { + printf("..%2d..", indent/2); + indent = 14; + } for (z = 0; z < indent; z++) printf(" "); u8putstr(stdout, subjdec, cols-38-indent, 0); |