1
1
Этот коммит содержится в:
Patrick Winnertz 2009-01-24 13:21:18 +01:00
родитель 50afa35d28 786f68dd4f
Коммит 106616423e

Просмотреть файл

@ -1453,7 +1453,8 @@ string_regexp_search (char *pattern, char *string, int match_type,
g_free (old_pattern); g_free (old_pattern);
old_pattern = 0; old_pattern = 0;
} }
if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0))) { if (regcomp (&r, pattern, REG_EXTENDED | (icase ? REG_ICASE : 0) |
REG_NEWLINE)) {
*found_len = 0; *found_len = 0;
return -3; return -3;
} }
@ -1553,7 +1554,7 @@ edit_find_string (long start, unsigned char *exp, int *len, long last_byte, edit
int found_start, match_bol, move_win = 0; int found_start, match_bol, move_win = 0;
while (start + offset < last_byte) { while (start + offset < last_byte) {
match_bol = (offset == 0 || (*get_byte) (data, start + offset - 1) == '\n'); match_bol = (start == 0 || (*get_byte) (data, start + offset - 1) == '\n');
if (!move_win) { if (!move_win) {
p = start + offset; p = start + offset;
q = 0; q = 0;