FIXED? Find/Replace in selection works unstably

Post bug reports when testing beta versions here.
Post Reply
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

FIXED? Find/Replace in selection works unstably

Post by pjj »

I just noticed there is a serious glitch in Find and Replace, when operation range is set to selection; count usually doesn't work (shows 0 hits), and preview window shows random results (sometimes 0, sometimes some). Replacement is never done, and result dialog shows random number of (purportedly) replaced items. (I'm using Find window in the latest beta.)

...Well, turns out sometimes it does work, but then the very first element isn't replaced (nor counted) anyway.

Btw, IIRC Find and Replace used to retained the last used range, now each time this defaults to "Global"; could you please make it remember the range again?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Find/Replace in selection works unstably

Post by Rickard Johansson »

I tried with some different options but I can't reproduce the issue. I did find a count problem with the option "Match whole word", but nothing else...
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Find/Replace in selection works unstably

Post by pjj »

I can't reproduce the issue regularly; sometimes it works, sometimes it doesn't. Perhaps you could try once more with these settings: open a file with at least 10 lines, select three last ones, ^R, search for just one char present on each line, range: selection, No output, no other settings, Count: it shows number of characters minus one, e.g.

Code: Select all

one
two
three
four
five
six:
seven:
eight: 
nine:
ten:
Select last three lines and count colons in your selection; I got repeatedly two instead of three.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Find/Replace in selection works unstably

Post by Rickard Johansson »

The count issue in selection has been fixed...
User avatar
Rickard Johansson
Site Admin
Posts: 6577
Joined: 19 Jul 2006 14:29

Re: Find/Replace in selection works unstably

Post by Rickard Johansson »

If some of your problems occurred in Unix/Linux files I may have fixed your other issues as well.
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Find/Replace in selection works unstably

Post by pjj »

Thank you! I use Unix/Linux newlines almost exclusively, so I hope these errors are gone, too.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply