Searching for text returns same Line twice
-
When searching an XML file for the text “AttachmentBinaryObject” it returns the same line (including the embedded file data) twice!?!?!

-
P PeterJones moved this topic from Notepad++ & Plugin Development on
-
it returns the same line (including the embedded file data) twice!?!?!
Your screenshot shows it’s a long line (it’s shown as wrapped above). My guess, though I cannot prove it, is that there’s another match later on the line. Yes: I just confirmed that if the line is long enough, Search Results can split the results on a single line into multiple entries in the Search Results panel. If you double-click on the second line in the Search Results, the editor panel will scroll to the appropriate portion of the long line, and you’ll likely see another match. (Or you can use F4 to loop through all the matches, one at a time)
(Aside: the “Notepad++ & Plugin Development” category is only if you are talking about writing a plugin yourself, or if you were digging into the codebase of Notepad++ yourself. If you are just asking for help with Notepad++, the “Help Wanted” category is where it goes. I moved your question to the appropriate category.)
-
@PeterJones said:
if the line is long enough, Search Results can split the results on a single line into multiple entries in the Search Results panel
Can we quantify “long enough”?
Is this behavior worth documenting in the user manual?
Note that the above discussion presumes this setting is checkmarked:

If it is uncheckmarked, then each match for sure gets its own line in Search results regardless of length of line.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login