Search for string in very long line problem
#7455
Description of the Issue
The issue started here: https://community.notepad-plus-plus.org/topic/18673/possible-bug-very-long-line
I searched for the start of the suspect line (find all current), it appeared in the results pane. Double clicking on the result would not move the main pane to that line. I think it is due to another very long line before the search results. I searched for the start of the prior line - double clicking on that result moved the main pane. It did not matter if I had Word Wrap on or off.
This is annoying but not critical - I can scroll to the line.
Steps to Reproduce the Issue
- Open the file
- Search (find all current) for ["data"] It is at line 1758
- Double click on the search results; the main pane will not move to the line
Expected Behavior
The main pane will move to the selected line
Actual Behavior
"Nothing"
Debug Information
File attached. You can search for the line prior (1757) - ["itemStrings"]; double click and the main pane will show that line. This file is used by a World of Warcraft addon written in Lua. It is an output of a Lua data structure.
Could not reproduce. It worked fine for me. Here's my Debug Information for the Notepad++ version I used:
Notepad++ v7.8.2 (32-bit) Build time : Dec 4 2019 - 01:36:59 Path : C:............\npp.7.8.2.bin\notepad++.exe Admin mode : OFF Local Conf mode : ON OS Name : Windows 10 Enterprise (64-bit) OS Version : 1709 OS Build : 16299.1508 Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Thank you for investigating. Ok, I did the steps again and you are right, it worked for me. Then I moved off the line and searched again - now I get it. I did not realize the extra steps until forced to reproduce it myself. Even weirder... Leave the search results in the results pane. If you use the first search, the main pane moves. Use the second search results - you get what I described. Added my debug - hope that helps.
Notepad++ v7.8.2 (32-bit) Build time : Dec 4 2019 - 01:36:59 Path : C:\Software\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS Name : Windows 10 Home (64-bit) OS Version : 1903 OS Build : 18362.535 Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll Tidy2.dll XMLTools.dll
I don't really follow your new explanation. :-(
Sorry, I'll try again :) Search for ["data"] (find all current) Double click on the search results to move to that line (should move in main pane) Scroll up (or to top) so the line is not visible in the main pane Search again (same text & find all current); you will have two results in the results pane Now double click the second (newest) search results for the same text
- The main pane should not go to that line If you expand the first search results (same text) and double click, it should move to that line in the main pane Crazy odd scenario I know...
Okay, with that, yes I can duplicate your results.
Note that in the first search result, the ["data"] text at the start of line 1758 is colored red with a yellow background (normal). In the second search result that same text is colored red BUT WITH NO YELLOW BACKGROUND. This is quite odd. :-)
Note also if you horizontally scroll the Find result panel window to the right, you'll see a yellow background start up again and proceed as far to the right as you care to scroll. Also odd. I also notice in the same column position that the yellow background starts in the first result, the font of the second result changes:

Thank you for sticking with me on this. :) Notepad++ is an app I have used for more years than I care to admit! It has survived much 'abuse' by me in that time - large files to dozens of files at the same time. It is my go to recommendation as a software architect / designer / developer / scripter / debugger to anyone that does not need a full IDE. Certainly, for me, this is not critical. I felt I should share this to make Notepad++ even better. Please reach out if you have any further questions.
@urnati Can you still duplicate the above behavior with N++ 8.4.4 (the current version as of this writing)?