1
1

Merge branch '1366_shell_patterns'

* 1366_shell_patterns:
  Ticket #1366 (shell patterns: '[*' does not mark files started with '[')
Этот коммит содержится в:
Slava Zanko 2009-06-22 13:41:09 +03:00
родитель a5f4a672f6 b6b446076c
Коммит 63786f2b7f
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -91,14 +91,12 @@ mc_search__glob_translate_to_regex (gchar * str, gsize * len)
continue;
}
break;
case '\\':
case '+':
case '.':
case '$':
case '(':
case ')':
case '^':
case '-':
g_string_append_c (buff, '\\');
g_string_append_c (buff, str[loop]);
loop++;

Просмотреть файл

@ -39,7 +39,7 @@
static const char ESCAPE_SHELL_CHARS[] = " !#$%()&~{}[]`?|<>;*\\\"";
static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&~{}[]`?|<>;*.\\";
static const char ESCAPE_GLOB_CHARS[] = "${}*.\\";
static const char ESCAPE_GLOB_CHARS[] = "$*\\";
/*** file scope functions ************************************************************************/