From a52c92cde1e8dca510ae2fbaab40c585e19a1481 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Tue, 10 Sep 2013 16:40:59 +0430 Subject: [PATCH] ren: include indentation in diversion width --- ren.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ren.c b/ren.c index 0127327..5178f1b 100644 --- a/ren.c +++ b/ren.c @@ -233,8 +233,8 @@ static int ren_ljust(struct sbuf *spre, int w, int ad, int ll, int li, int lt) 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; } -- 2.11.4.GIT