Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define G_LOG_DOMAIN "TextBuffer"
+
#include "module.h"
#include "misc.h"
#include "formats.h"
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);
}
}