[BACK]Return to term_ps.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ps.c between version 1.68 and 1.69

version 1.68, 2014/10/28 17:36:19 version 1.69, 2014/11/20 13:56:20
Line 635  ps_setwidth(struct termp *p, int iop, size_t width)
Line 635  ps_setwidth(struct termp *p, int iop, size_t width)
         size_t   lastwidth;          size_t   lastwidth;
   
         lastwidth = p->ps->width;          lastwidth = p->ps->width;
         if (0 < iop)          if (iop > 0)
                 p->ps->width += width;                  p->ps->width += width;
         else if (0 > iop)          else if (iop == 0)
                   p->ps->width = width ? width : p->ps->lastwidth;
           else if (p->ps->width > width)
                 p->ps->width -= width;                  p->ps->width -= width;
         else          else
                 p->ps->width = width ? width : p->ps->lastwidth;                  p->ps->width = 0;
         p->ps->lastwidth = lastwidth;          p->ps->lastwidth = lastwidth;
 }  }
   

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

CVSweb