mirror of git://git.code.sf.net/p/zsh/code
22429: fix bug with pure string matching
This commit is contained in:
parent
a2d5ebe3c0
commit
20198effd4
|
@ -1,5 +1,8 @@
|
|||
2006-04-25 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22429: Src/pattern.c: bug with pure string matching
|
||||
introduced by 22408.
|
||||
|
||||
* 22427: Doc/Zsh/zle.yo, Src/Zle/zle_thingy.c: zle <widget> -w
|
||||
sets WIDGET etc. to reflect <widget>.
|
||||
|
||||
|
|
|
@ -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] == '.' &&
|
||||
|
|
Loading…
Reference in New Issue