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; |
} |
} |
|
|