version 1.19, 2009/06/04 02:23:37 |
version 1.20, 2011/11/28 05:04:17 |
|
|
/* |
/* |
* if at end of line or at doublespace and previous |
* if at end of line or at doublespace and previous |
* character was one of '.','?','!' doublespace here. |
* character was one of '.','?','!' doublespace here. |
|
* behave the same way if a ')' is preceded by a |
|
* [.?!] and followed by a doublespace. |
*/ |
*/ |
if ((eolflag || |
if ((eolflag || |
curwp->w_doto == llength(curwp->w_dotp) || |
curwp->w_doto == llength(curwp->w_dotp) || |
(c = lgetc(curwp->w_dotp, curwp->w_doto)) == ' ' |
(c = lgetc(curwp->w_dotp, curwp->w_doto)) == ' ' |
|| c == '\t') && ISEOSP(wbuf[wordlen - 1]) && |
|| c == '\t') && (ISEOSP(wbuf[wordlen - 1]) || |
|
(wbuf[wordlen - 1] == ')' && |
|
ISEOSP(wbuf[wordlen - 2]))) && |
wordlen < MAXWORD - 1) |
wordlen < MAXWORD - 1) |
wbuf[wordlen++] = ' '; |
wbuf[wordlen++] = ' '; |
|
|