ref: dc79dfc70a21b64059e3aec08e218f83010320c8
parent: bd28bd4785855f11739a67c127e013e1d568df08
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Apr 25 15:48:22 EDT 2013
ren: account for .ti when indenting lines in diversions
--- a/ren.c
+++ b/ren.c
@@ -204,8 +204,8 @@
if (cdiv) {
if (cdiv->dl < w)
cdiv->dl = w;
- if (ljust) {
- sprintf(cmd, "\\h'%du'", ljust);
+ if (ljust + lt) {
+ sprintf(cmd, "\\h'%du'", lt + ljust);
sbuf_append(&cdiv->sbuf, cmd);
}
sbuf_append(&cdiv->sbuf, s);