Community
    • Login

    Wrong insertion of text, in the new FIND and REPLACE dialogs

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 81 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • guy038G
      guy038
      last edited by guy038

      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 the Find what: zone

      For all the tests done in that topic, I assume that :

      • The Maximum Size for Auto-Checking "In selection", in Settings > Preferences... > Searching, is set to 0

      • The Search mode of the Find dialog is set to Normal

      • 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 first CR character met, excluded ( NOT all your selection )

      12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567812345678901234567890123456789012345678901234567---
      1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
      

      In the text above, the line-break is the combination fo the CR and LF 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 the Find 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 part 567---


      • Recopy the raw text above in an other location

      • Select the CRLF part, and after using the Alt + 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 the Find 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 part 1234567890 !


      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 !

      M Andre Z EckenrodeM 1 Reply Last reply Reply Quote 0
      • M Andre Z EckenrodeM
        M Andre Z Eckenrode @guy038
        last edited by

        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 use CRLF, 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 the FIND/REPLACE/MARK dialog, that text then populates the FIND WHAT field, line endings and all. I just wish I could see them when they’re in there.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors