Page 1 of 1
FIXED? Find/Replace in selection works unstably
Posted: 13 Apr 2015 06:51
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?
Re: Find/Replace in selection works unstably
Posted: 13 Apr 2015 16:41
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...
Re: Find/Replace in selection works unstably
Posted: 13 Apr 2015 18:22
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.
Re: Find/Replace in selection works unstably
Posted: 14 Apr 2015 12:29
by Rickard Johansson
The count issue in selection has been fixed...
Re: Find/Replace in selection works unstably
Posted: 14 Apr 2015 13:24
by Rickard Johansson
If some of your problems occurred in Unix/Linux files I may have fixed your other issues as well.
Re: Find/Replace in selection works unstably
Posted: 14 Apr 2015 14:04
by pjj
Thank you! I use Unix/Linux newlines almost exclusively, so I hope these errors are gone, too.