diff options
Diffstat (limited to 'src/fe-text/textbuffer.c')
-rw-r--r-- | src/fe-text/textbuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c index 8ac8bf00..ee11aa67 100644 --- a/src/fe-text/textbuffer.c +++ b/src/fe-text/textbuffer.c @@ -518,7 +518,8 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline, textbuffer_line_ref(line); matches = g_list_append(matches, line); - if (!line_matched && --match_after == 0) + if ((!line_matched && --match_after == 0) || + (line_matched && match_after == 0 && before > 0)) matches = g_list_append(matches, NULL); } } |