version 1.22, 2009/03/01 13:06:49 |
version 1.23, 2009/03/01 23:23:55 |
Line 173 flushln(struct termp *p) |
|
Line 173 flushln(struct termp *p) |
|
for (i = 0; i < p->col; i++) { |
for (i = 0; i < p->col; i++) { |
/* |
/* |
* Count up visible word characters. Control sequences |
* Count up visible word characters. Control sequences |
* (starting with the CSI) aren't counted. |
* (starting with the CSI) aren't counted. A space |
|
* generates a non-printing word, which is valid (the |
|
* space is printed according to regular spacing rules). |
*/ |
*/ |
assert( ! xisspace(p->buf[i])); |
|
|
|
/* LINTED */ |
/* LINTED */ |
for (j = i, vsz = 0; j < p->col; j++) { |
for (j = i, vsz = 0; j < p->col; j++) { |
Line 187 flushln(struct termp *p) |
|
Line 188 flushln(struct termp *p) |
|
} else |
} else |
vsz++; |
vsz++; |
} |
} |
assert(vsz > 0); |
|
|
|
/* |
/* |
* If we're breaking normally... |
* If we're breaking normally... |
|
|
pword(struct termp *p, const char *word, size_t len) |
pword(struct termp *p, const char *word, size_t len) |
{ |
{ |
size_t i; |
size_t i; |
|
|
/*assert(len > 0);*/ /* Can be, if literal. */ |
|
|
|
/* |
/* |
* Handle pwords, partial words, which may be either a single |
* Handle pwords, partial words, which may be either a single |