Aporia icon indicating copy to clipboard operation
Aporia copied to clipboard

Hangs after searching Regex backwards

Open scriptum opened this issue 9 years ago • 2 comments

Aporia hangs after searching regexp .* backwards (Ctrl+F, type .*, select Regex, press "Previous") if document not empty.

nim 0.11.3, aporia 0.1.3 (that was in About dialog) or 0.2 in aporia.babel.

scriptum avatar Jul 03 '15 09:07 scriptum

Also happens with simply .

achesak avatar Sep 01 '16 15:09 achesak

That previous comment is incorrect, these appear to be separate issues. Aporia doesn't handle single character match searches correctly, but even when this is fixed the behavior for .* is not as it should be.

The issue here is that .* will continually match the first line, and gets stuck in a loop. The behavior for .* forwards search is broken as well. Place the cursor in the middle of a line, and the first find will match the rest of that line, but any subsequent ones will get stuck on the first line in the file.

achesak avatar Sep 04 '16 05:09 achesak