aboutsummaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index e675679..dd9492f 100644
--- a/match.c
+++ b/match.c
@@ -138,7 +138,7 @@ match_t *next_match(def_t *defs, file_t *f, match_t *prev, pat_t *pat, pat_t *sk
} else {
str = f->contents;
}
- while (str < f->end) {
+ while (str <= f->end) {
match_t *m = match(defs, f, str, pat, ignorecase);
if (m) return m;
match_t *s;