Navigation Menu

Skip to content

Commit

Permalink
ii regexp: ensure setting end_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 18, 2017
1 parent 3d6eb24 commit 872b9d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ii.c
Expand Up @@ -7978,6 +7978,9 @@ grn_ii_select_cursor_next(grn_ctx *ctx,
if (ti->pos == pos) {
score += ti->p->weight + ti->cursors->bins[0]->weight;
count++;
if (ti->p->pos > end_pos) {
end_pos = ti->p->pos;
}
} else {
score = ti->p->weight + ti->cursors->bins[0]->weight;
count = 1;
Expand Down

0 comments on commit 872b9d1

Please sign in to comment.