diff -Naur mc-4.7.0-pre1~/src/search/normal.c mc-4.7.0-pre1/src/search/normal.c
old
|
new
|
|
91 | 91 | mc_search__normal_translate_to_regex (mc_search_cond->str->str, &mc_search_cond->len); |
92 | 92 | |
93 | 93 | g_string_free (mc_search_cond->str, TRUE); |
| 94 | |
| 95 | if (mc_search->whole_words) { |
| 96 | g_string_prepend (tmp, "\\b"); |
| 97 | g_string_append (tmp, "\\b"); |
| 98 | } |
94 | 99 | mc_search_cond->str = tmp; |
95 | 100 | |
96 | 101 | mc_search__cond_struct_new_init_regex (charset, mc_search, mc_search_cond); |
diff -Naur mc-4.7.0-pre1~/src/search/regex.c mc-4.7.0-pre1/src/search/regex.c
old
|
new
|
|
63 | 63 | const char *special_chars[] = { |
64 | 64 | "\\s", "\\S", |
65 | 65 | "\\d", "\\D", |
66 | | "\\B", "\\B", |
| 66 | "\\b", "\\B", |
67 | 67 | "\\w", "\\W", |
68 | 68 | "\\t", "\\n", |
69 | 69 | "\\r", "\\f", |
diff -Naur mc-4.7.0-pre1~/src/search/search.h mc-4.7.0-pre1/src/search/search.h
old
|
new
|
|
63 | 63 | /* search entire string (from begin to end). Used only with GLOB search type */ |
64 | 64 | gboolean is_entire_line; |
65 | 65 | |
| 66 | /* search entire string (from begin to end). Used only with NORMAL search type */ |
| 67 | gboolean whole_words; |
| 68 | |
66 | 69 | /* function, used for getting data. NULL if not used */ |
67 | 70 | mc_search_fn search_fn; |
68 | 71 | |