Page 1 of 1

v9.9 search bug: output wraps within lines

Posted: Sun Sep 07, 2025 7:38 pm
by IanOfYork
Just upgraded to version 9.9 and now see a problem with the search.
The search works fine, but the output wraps within lines at seemingly random points.
Digging deeper, the output seems to have a CR/LF pair added at about 4k intervals.

Re: v9.9 search bug: output wraps within lines

Posted: Sun Sep 07, 2025 8:41 pm
by AmigoJack
So you mean "Find In Files". Does that mean
  1. that you get matching lines from found files which are very long (more than 4096 characters) and such lines are line wrapped? Or
  2. that the found lines are of average length (like 10-120 characters) and the sum of multiple lines in the results then forces one the last one to line wrap where there should not be one in the original file?
In either case you end up with a document of results that could not be searched again (with "Find") using the same queried text, because it wouldn't match all of the lines - right?

Re: v9.9 search bug: output wraps within lines

Posted: Mon Sep 08, 2025 7:50 am
by miked
I've just came here as I noticed the same thing.

If the find in files produces say 100 results, the result at approximately line 40 and at line 80 will be split over 2 lines.
I agree that the splits happen every 4096 characters.

Re: v9.9 search bug: output wraps within lines

Posted: Sun Sep 21, 2025 6:41 am
by bbadmin
This is fixed in TextPad 9.9.1 and 8.23.1 which are now available for download.

Re: v9.9 search bug: output wraps within lines

Posted: Mon Sep 22, 2025 6:45 pm
by lklawrie
Appears to still be there in V 8.23. see attached.

Causes weird errors when "Open All" is then applied.

one line, for example:
H:\Running-Weather\Norway CERRA\Source\TMY_Inderoy_Trondelag_CERRA_1991-2020_tmy-
no.def(3): StateProv=TD

Interestingly, when I searched a different value in these files, it did not mess up.

Re: v9.9 search bug: output wraps within lines

Posted: Tue Sep 23, 2025 10:50 am
by bbadmin
I edited your search results file to strip off "H:\Running-Weather\Norway " and correct the split lines, before saving it as "C:\Running-Weather\Norway". A find in files on that had no split lines. I also ran a different find which produced over 98,000 matches, without a single split line.

Please check that the version you are running is 8.23.1.