Mercurial > emacs
changeset 57921:a17e7dae99c0
(fontset_pattern_regexp): If '*' is preceded by '\',
treat it as a literal character.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 04 Nov 2004 02:26:43 +0000 |
parents | 56342493afe3 |
children | 8089248edf3c |
files | src/fontset.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fontset.c Wed Nov 03 21:55:28 2004 +0000 +++ b/src/fontset.c Thu Nov 04 02:26:43 2004 +0000 @@ -796,7 +796,7 @@ { if (*p0 == '-') ndashes++; - else if (*p0 == '*') + else if (*p0 == '*' && p0 > SDATA (pattern) && p0[-1] != '\\') nstars++; } @@ -811,7 +811,7 @@ *p1++ = '^'; for (p0 = (char *) SDATA (pattern); *p0; p0++) { - if (*p0 == '*') + if (*p0 == '*' && p0 > SDATA (pattern) && p0[-1] != '\\') { if (ndashes < 14) *p1++ = '.';