rd->tail_length = cr.x;
left_margin = calc_pos(rd->left_margin, p->w, rd->curs_width);
- right_margin = p->w - calc_pos(rd->right_margin, p->w, rd->curs_width);
+ /* 0 means right edge for right_margin, and left edge for all others */
+ right_margin = p->w - calc_pos(-rd->right_margin, p->w, rd->curs_width);
for (ri = rd->content; ri; ri = ri->next) {
if ((unsigned char)rd->line[ri->start] >= ' ') {
<space-above:40,space-below:10,20,fg:blue,bg:yellow,center>This is my test file for markup</>
-<word-wrap,wrap-tail:,wrap-head:-),wrap-,right:300,left:70>Now is the time for all good men to come to the aid of the party</a>
+<word-wrap,wrap-tail:,wrap-head:-),wrap-,right:400,left:70>Now is the time for all good men to come to the aid of the party</a>
-<wrap-tail:,wrap-head:-),wrap-,right:300,left:70>Now is the time for all good men to come to the aid of the party</a>
+<wrap-tail:,wrap-head:-),wrap-,right:400,left:70>Now is the time for all good men to come to the aid of the party</a>