Mercurial > hg > xemacs-beta
diff src/regex.c @ 126:1370575f1259 xemacs-20-1p1
Import from CVS: tag xemacs-20-1p1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:27:39 +0200 |
parents | fe104dbd9147 |
children | 6b37e6ddd302 |
line wrap: on
line diff
--- a/src/regex.c Mon Aug 13 09:26:41 2007 +0200 +++ b/src/regex.c Mon Aug 13 09:27:39 2007 +0200 @@ -3892,7 +3892,11 @@ if (startpos > 0) return -1; else - range = 1; + { + d = ((CONST unsigned char *) + (startpos >= size1 ? string2 - size1 : string1) + startpos); + range = charcount_to_bytecount (d, 1); + } } /* Update the fastmap now if not correct already. */