Ticket #372: usermenu_regex.patch
File usermenu_regex.patch, 1.1 KB (added by iNode, 15 years ago) |
---|
-
user.c
old new 402 402 { 403 403 WPanel *panel; 404 404 char arg [256]; 405 mc_search_type_t search_type; 406 407 if (easy_patterns) 408 search_type = MC_SEARCH_T_GLOB; 409 else 410 search_type = MC_SEARCH_T_REGEX; 405 411 406 412 /* Handle one condition */ 407 413 for (;*p != '\n' && *p != '&' && *p != '|'; p++){ … … 426 432 break; 427 433 case 'f': /* file name pattern */ 428 434 p = extract_arg (p, arg, sizeof (arg)); 429 *condition = panel && mc_search (arg, panel->dir.list [panel->selected].fname, MC_SEARCH_T_GLOB);435 *condition = panel && mc_search (arg, panel->dir.list [panel->selected].fname, search_type); 430 436 break; 431 437 case 'y': /* syntax pattern */ 432 438 if (edit_widget && edit_widget->syntax_type) { … … 437 443 break; 438 444 case 'd': 439 445 p = extract_arg (p, arg, sizeof (arg)); 440 *condition = panel && mc_search (arg, panel->cwd, MC_SEARCH_T_GLOB);446 *condition = panel && mc_search (arg, panel->cwd, search_type); 441 447 break; 442 448 case 't': 443 449 p = extract_arg (p, arg, sizeof (arg));