Hi, @mario-valle, @peterjones, @alan-kilborn and All,
I think that I understood the problem !
The bug occurs whatever the type of search is run ( Find All in Current Document, Find All in All Opened Documents or Find All ) I could reproduce the problem with N++ v7.8.5, 32 bits and the last version v7.9.0, 32 bits
It does not depend of the search mode Normal or Regular expression nor of the Word Wrap feature
Briefly : When the search concerns an expression, in a line of more than 1,002 characters and that you process successive searches, let’s say, 3 times, for the same expression or even an other one, a double-click on this long line, in the Find Result panel, moves to the concerned line of the concerned file, ONLY for the FIRST of the searches done ! Any double-click on this long line, in the subsequent searches, displayed in the Find result panel, does NOT work at all !
To reproduce the issue :
Download the bug.txt file of @mario-valle :https://github.com/notepad-plus-plus/notepad-plus-plus/files/5378450/bug.txt
Open this file with Notepad++
First, deletes the end of the long line 4, which begins with Nelle nostre «Case dei Bambini», in order that the line contains exactly 1,002 characters ( not included line-break chars ! ). Personally, I ended this line with «bambini indipendenti» che 89012 to correctly see from the 998th to the 1,002th final character !
Run a first search of the word indumenti, clicking on the Find All in Current Document
Run a second search of the word spolverare, clicking again on the Find All in Current Document
Run a third search of the word indumenti, always clicking on the Find All in Current Document
In the Find result panel, right-click on the context menu and choose the Uncollapse All option
You can easily verify that a double-click at any part of these 3 lines, correctly, selects the right word, in the bug.txt file
Note that the two words spolverare and indumenti occur only once, in line 4 of @mario-valle’s file !
Then add just ONE character to the line 4 : I chose the digit 3 so the line ends with «bambini indipendenti» che 890123. Now, the line is 1,003 chars long, OK ! Redo all the process :
First, clear the Find Result panel, using the Clear All option, from the context menu
Run a first search of the word indumenti, clicking on the Find All in Current Document
Run a second search of the word spolverare, clicking again on the Find All in Current Document
Run a third search of the word indumenti, always clicking on the Find All in Current Document
In the Find result panel, right-click on the context menu and choose the option Uncollapse All
Now, double-click on each line of the Find result panel. It’s obvious that a double-click on the line, relative to the 1st search processed, works correctly. However, a double-click on the two other lines, relative to the 2nd and 3rd searches, produce nothing !?
Of course, I’m going to refer to this post in the GitHub issues 9009 and 8525 !
Best Regards,
guy038