Wrong insertion of text, in the new FIND and REPLACE dialogs
-
Hello, @donho and All,
This time, I prefer to relate of the possible bug in a separate topic !
In point 4 of the new
8.8.4
release it is said :4. Increase search input length from 2046 to 16383.
That’s great, indeed !
I did some texts and I’ve found out a problem which happens for any amount of text (
< 16383
chars ) pasted in theFind what:
zoneFor all the tests done in that topic, I assume that :
-
The
Maximum Size for Auto-Checking "In selection"
, inSettings > Preferences... > Searching
, is set to 0 -
The Search mode of the
Find
dialog is set toNormal
-
All other options of the
Find
dialog are unckecked
So this new feature is working ONLY IF we refer to a single line amount of text or a multi-lines text separated with the
LF
end of line char only !As soon as your multi-lines text meets a
CR
character, even if you select some more characters, after copying all your selection in the Find dialog, you should only see the part between the beginning of your selection and the firstCR
character met, excluded ( NOT all your selection )12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567812345678901234567890123456789012345678901234567--- 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
In the text above, the line-break is the combination fo the
CR
andLF
characters-
Select all this text
-
Hit the
Ctrl + C
shortcut -
Open the Find dialog (
Ctrl + F
) -
Click on the
Delete
key to delete any previous text in theFind what:
zone -
Hit the
Ctrl + V
shortcut to paste the clipboard contents
=> You should see, in the
Find what:
zone, the end of the pasted text, which is, wrongly, the part567---
-
Recopy the raw text above in an other location
-
Select the
CRLF
part, and after using theAlt + 010
input method ( hence, my previous posts !! ), you should get the text below :
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567812345678901234567890123456789012345678901234567--- 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
So, in the text, right above, the line-break is only the
LF
char-
Again, select all that text
-
Hit the
Ctrl + C
shortcut -
Open the Find dialog (
Ctrl + F
) -
Click on the
Delete
key to delete any previous text in theFind what:
zone -
Hit the
Ctrl + V
shortcut to paste the clipboard contents
=> This time, you should see, in the
Find what:
zone, the true end of the pasted text, which is the part1234567890
!
Note that the results are identical for the
Replace with:
zone !Best Regards,
guy038
This problem appears from the
v8.6.2
N++release, at minimum ! -
-
I’m very certain that I’ve attempted, unsuccessfully, to paste multi-line text into
FIND
/REPLACE
/MARK
etc. string input zones many times, going back 10 years or more, though I always assumed that any line ending sequence was disallowed (I pretty much always useCRLF
, myself). Of course, at least with the appropriate setting (I forget specifically, but think offhand that there is a setting for it), if you have text selected before you open theFIND
/REPLACE
/MARK
dialog, that text then populates theFIND WHAT
field, line endings and all. I just wish I could see them when they’re in there.