From 12891835f4bdf6f5f81e327e340304cae9e86af4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 6 Oct 2010 18:37:17 +0300 Subject: [PATCH] Ticket #2327: Can't put ? into a new name. The bug is caused by extra "continue" statement in case '*'/case '?' branch. As a result, \ is added to converted string, but following N is not. Example: when one renames many files using "*" to "a*z", "a*z" gets converted to "a\z" instead of correct "a\1z" Signed-off-by: Slava Zanko --- lib/search/glob.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/search/glob.c b/lib/search/glob.c index dc32311c2..ad0c42506 100644 --- a/lib/search/glob.c +++ b/lib/search/glob.c @@ -144,11 +144,8 @@ mc_search__translate_replace_glob_to_regex (gchar * str) { g_string_append_c (buff, '\\'); c = ++cnt; - continue; } break; - /* breaks copying: mc uses "\0" internally, it must not be changed */ - /*case '\\': */ case '&': g_string_append_c (buff, '\\'); break;