Need to subtract start from the end to get the length.
Signed-off-by: NeilBrown <neil@brown.name>
### Triage
-- [ ] check formatting in x11 display. Wrap causes problems 474/476 of
+- [X] check formatting in x11 display. Wrap causes problems 474/476 of
render-present.py and elsewhere
- [ ] check notmuch formatting. wrap-margin isn't right!
- [X] email display: image positioning is wrong. Maybe they don't get
if (split)
offset = -1;
}
- if (ri->split_list && split < ri->split_cnt)
- len = ri->split_list[split];
+ if (ri->split_list) {
+ if (split < ri->split_cnt)
+ len = ri->split_list[split];
+ if (split)
+ len -= ri->split_list[split-1];
+ }
if (str[0] == '\t')
/* Tab need a list of spaces */