aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-05-08 21:01:29 +0200
committerMattias Andrée <maandree@kth.se>2018-05-08 21:01:29 +0200
commitc624a01eddca720f80dc4b11baf7f4ea7b85dde6 (patch)
tree6284f0018cd834ff7f2dcfd21c9917d2d2cbe787
parentAdd missing test case (diff)
downloadloc-c624a01eddca720f80dc4b11baf7f4ea7b85dde6.tar.gz
loc-c624a01eddca720f80dc4b11baf7f4ea7b85dde6.tar.bz2
loc-c624a01eddca720f80dc4b11baf7f4ea7b85dde6.tar.xz
Fix tabulation3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--loc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loc.c b/loc.c
index dc47107..bd43584 100644
--- a/loc.c
+++ b/loc.c
@@ -178,9 +178,9 @@ main(int argc, char *argv[])
}
if (res[i].n >= 0) {
left = strwidth(argv[i]);
- left = left > maxleft ? left : maxleft;
+ maxleft = left > maxleft ? left : maxleft;
right = zuwidth(res[i].n);
- right = right > maxright ? right : maxright;
+ maxright = right > maxright ? right : maxright;
res[i].width = left + right;
}
}