Skip to content
Snippets Groups Projects
Commit 21f1d0ab authored by Basarat Ali Syed's avatar Basarat Ali Syed Committed by Marijn Haverbeke
Browse files

[search addon] Make sure search overlay always advances the stream

parent c375d82c
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
query.lastIndex = stream.pos;
var match = query.exec(stream.string);
if (match && match.index == stream.pos) {
stream.pos += match[0].length;
stream.pos += match[0].length || 1;
return "searching";
} else if (match) {
stream.pos = match.index;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment