From 20198effd4b511d27fc8f594f23352ff0ff57f2c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 25 Apr 2006 13:01:52 +0000 Subject: 22429: fix bug with pure string matching --- Src/pattern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/pattern.c') diff --git a/Src/pattern.c b/Src/pattern.c index 8f8b25610..b547bdc14 100644 --- a/Src/pattern.c +++ b/Src/pattern.c @@ -1137,7 +1137,7 @@ patcomppiece(int *flagp) * ..(#a1).. (i.e. the (#a1) has no effect), but if you're * going to write funny patterns, you get no sympathy from me. */ - if (patglobflags) { + if (patglobflags & (0xFF|GF_LCMATCHUC|GF_IGNCASE)) { if (!(patflags & PAT_FILE)) flags &= ~P_PURESTR; else if (!(nptr[0] == '.' && -- cgit 1.4.1