Ticket #1366 (shell patterns: '[*' does not mark files started with '[')
Description: Try to highlight files [1], [2] and [3]: Gray-+ [* (or \[*) Enter Nothing marked Fix solution: * With glob search backshash was escaped. Now this behaviour canceled. * Fix escaping of GLOB patterm search string. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
родитель
a5f4a672f6
Коммит
b6b446076c
@ -91,14 +91,12 @@ mc_search__glob_translate_to_regex (gchar * str, gsize * len)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '\\':
|
|
||||||
case '+':
|
case '+':
|
||||||
case '.':
|
case '.':
|
||||||
case '$':
|
case '$':
|
||||||
case '(':
|
case '(':
|
||||||
case ')':
|
case ')':
|
||||||
case '^':
|
case '^':
|
||||||
case '-':
|
|
||||||
g_string_append_c (buff, '\\');
|
g_string_append_c (buff, '\\');
|
||||||
g_string_append_c (buff, str[loop]);
|
g_string_append_c (buff, str[loop]);
|
||||||
loop++;
|
loop++;
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
static const char ESCAPE_SHELL_CHARS[] = " !#$%()&~{}[]`?|<>;*\\\"";
|
static const char ESCAPE_SHELL_CHARS[] = " !#$%()&~{}[]`?|<>;*\\\"";
|
||||||
static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&~{}[]`?|<>;*.\\";
|
static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&~{}[]`?|<>;*.\\";
|
||||||
static const char ESCAPE_GLOB_CHARS[] = "${}*.\\";
|
static const char ESCAPE_GLOB_CHARS[] = "$*\\";
|
||||||
|
|
||||||
/*** file scope functions ************************************************************************/
|
/*** file scope functions ************************************************************************/
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user