ZXBasicStudio icon indicating copy to clipboard operation
ZXBasicStudio copied to clipboard

Replace next --> Replace this

Open EddieTheWild opened this issue 2 years ago • 3 comments

When finding&replacing text, the first ocurrence is square-marked. If you click on "Replace next", the first ocurrence is not replaced but the next one, and now the next (and third) ocurrence is square-marked, uf you click on "Replace next", that one is not replaced but the next one, etc. The result is a very weird replacement every two ocurrences.

I would suggest to move from "Replace next" to "Replace this" to replace the one currently square-marked, and then automatically move to and square-mark the next one.

EddieTheWild avatar Oct 31 '23 12:10 EddieTheWild

Strange behaviour also with the "Match whole words" find option. When off, finding "h$" in the sample text in attached pics gets 24 matches, and only 2 when it is on.

1 2

Why not finding it in "(h$=" or " h$=" but yes in ";h$" when that option is on?

EddieTheWild avatar Nov 01 '23 22:11 EddieTheWild

This is a bug in AvaloniaEdit, the editor control we use, I already opened a bug on summer but still has not been fixed.

https://github.com/AvaloniaUI/AvaloniaEdit/issues/355

gusmanb avatar Nov 02 '23 17:11 gusmanb

I've been working with the AvaloniaEdit guys this past week and the patch will be included in their next release :)

gusmanb avatar Jan 14 '24 10:01 gusmanb