version 1.1.1.2, 2012/05/29 12:26:49
|
version 1.1.1.3, 2012/10/09 09:29:52
|
Line 247 lbuf_print(struct lbuf *lbuf)
|
Line 247 lbuf_print(struct lbuf *lbuf)
|
/* For very small widths just give up... */ |
/* For very small widths just give up... */ |
len = lbuf->continuation ? strlen(lbuf->continuation) : 0; |
len = lbuf->continuation ? strlen(lbuf->continuation) : 0; |
if (lbuf->cols <= lbuf->indent + len + 20) { |
if (lbuf->cols <= lbuf->indent + len + 20) { |
lbuf->buf[lbuf->len] = '\0'; | if (lbuf->len > 0) { |
lbuf->output(lbuf->buf); | lbuf->buf[lbuf->len] = '\0'; |
| lbuf->output(lbuf->buf); |
| if (lbuf->buf[lbuf->len - 1] != '\n') |
| lbuf->output("\n"); |
| } |
goto done; |
goto done; |
} |
} |
|
|