ref: a52c92cde1e8dca510ae2fbaab40c585e19a1481
parent: 44ab1b978f5b083dd22c54d3c769192b0790522d
author: Ali Gholami Rudi <[email protected]>
date: Tue Sep 10 12:40:59 EDT 2013
ren: include indentation in diversion width
--- a/ren.c
+++ b/ren.c
@@ -233,8 +233,8 @@
ljust += llen - w;
if (ljust)
sbuf_printf(spre, "%ch'%du'", c_ec, ljust);
- if (cdiv && cdiv->dl < w)
- cdiv->dl = w;
+ if (cdiv && cdiv->dl < w + ljust)
+ cdiv->dl = w + ljust;
return ljust;
}