Ticket #3235: escaped_star_isnt_wildcard.patch
File escaped_star_isnt_wildcard.patch, 644 bytes (added by boris, 10 years ago) |
---|
-
src/filemanager/filegui.c
a b 612 612 static gboolean 613 613 is_wildcarded (char *p) 614 614 { 615 int escaped = 0; 615 616 for (; *p; p++) 616 617 { 617 if (*p == '*') 618 return TRUE; 619 if (*p == '\\' && p[1] >= '1' && p[1] <= '9') 620 return TRUE; 618 if (*p == '\\') 619 { 620 if (p[1] >= '1' && p[1] <= '9' && !escaped) 621 return TRUE; 622 escaped = !escaped; 623 } 624 else 625 { 626 if (*p == '*' && !escaped) 627 return TRUE; 628 escaped = 0; 629 } 621 630 } 622 631 return FALSE; 623 632 }