|
Lines 206-211
Link Here
|
| 206 |
|
206 |
|
| 207 |
/* Only a closing `?' or a newline delimit a substring search string. */ |
207 |
/* Only a closing `?' or a newline delimit a substring search string. */ |
| 208 |
for (local_index = i; c = string[i]; i++) |
208 |
for (local_index = i; c = string[i]; i++) |
|
|
209 |
{ |
| 209 |
#if defined (HANDLE_MULTIBYTE) |
210 |
#if defined (HANDLE_MULTIBYTE) |
| 210 |
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0) |
211 |
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0) |
| 211 |
{ |
212 |
{ |
|
Lines 222-228
Link Here
|
| 222 |
continue; |
223 |
continue; |
| 223 |
} |
224 |
} |
| 224 |
} |
225 |
} |
| 225 |
else |
|
|
| 226 |
#endif /* HANDLE_MULTIBYTE */ |
226 |
#endif /* HANDLE_MULTIBYTE */ |
| 227 |
if ((!substring_okay && (whitespace (c) || c == ':' || |
227 |
if ((!substring_okay && (whitespace (c) || c == ':' || |
| 228 |
(history_search_delimiter_chars && member (c, history_search_delimiter_chars)) || |
228 |
(history_search_delimiter_chars && member (c, history_search_delimiter_chars)) || |
|
Lines 230-236
Link Here
|
| 230 |
string[i] == '\n' || |
230 |
string[i] == '\n' || |
| 231 |
(substring_okay && string[i] == '?')) |
231 |
(substring_okay && string[i] == '?')) |
| 232 |
break; |
232 |
break; |
| 233 |
|
233 |
} |
| 234 |
which = i - local_index; |
234 |
which = i - local_index; |
| 235 |
temp = (char *)xmalloc (1 + which); |
235 |
temp = (char *)xmalloc (1 + which); |
| 236 |
if (which) |
236 |
if (which) |