--- a/QScintilla/SearchReplaceWidget.py Sat Jun 11 18:41:03 2011 +0200 +++ b/QScintilla/SearchReplaceWidget.py Sat Jun 11 19:13:00 2011 +0200 @@ -263,6 +263,8 @@ lineFrom, indexFrom, lineTo, indexTo) while ok: tgtPos, tgtLen = aw.getFoundTarget() + if tgtLen == 0: + break aw.setSearchIndicator(tgtPos, tgtLen) ok = aw.findNextTarget()