1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-02-14 22:23:24 +02:00

Fix grep match iterator.

This commit is contained in:
Andrew Gallant 2016-09-06 21:45:41 -04:00
parent 5938bed339
commit af3b56a623

View File

@ -254,7 +254,7 @@ impl<'b, 's> Iterator for Iter<'b, 's> {
self.start = self.buf.len();
return None;
}
self.start = mat.end + 1;
self.start = mat.end;
Some(mat)
}
}