diff options
| -rw-r--r-- | text-motions.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/text-motions.c b/text-motions.c index 067c9c8..b62dc23 100644 --- a/text-motions.c +++ b/text-motions.c @@ -634,9 +634,7 @@ size_t text_search_backward(Text *txt, size_t pos, Regex *regex) { size_t start = 0; size_t end = pos; RegexMatch match[1]; - char c; - int flags = text_byte_get(txt, end, &c) && c == '\n' ? 0 : REG_NOTEOL; - bool found = !text_search_range_backward(txt, start, end, regex, 1, match, flags); + bool found = !text_search_range_backward(txt, start, end, regex, 1, match, REG_NOTEOL); if (!found) { end = text_size(txt); |
