Page 1 of 1

Error showing search results for a file with mixed EOL

Posted: Mon Sep 20, 2021 4:49 pm
by d0vgan
I'm having a file "1.h" with ANSI encoding and mixed line endings: the most part of the file has "\n" line endings, but some lines have "\r\n" line endings.
The beginning of the file has "\n" line endings:

Code: Select all

// 1.h
#include "aaa.h"
#include "bbb.h"
#include "ccc.h"
#include "ddd.h"	

...
Then this part has "\r\n" line endings:

Code: Select all

	enum EnumType : unsigned int {
		eee1 = 0,
		eee2,
		eee3
	};
The rest of the file has "\n" line endings again.

Now, I'm searching for a word eee2 in this file and here is what TextCrawler Pro 3.1.2 shows me with its option "No. lines to display above/below found text" set to 2 :

Code: Select all

 C:\Temp\1.h 
      1   // 1.h
      2   #include "aaa.h"
      3   		eee2,
      4   #include "ccc.h"
      5   #include "ddd.h"	
As you can see, the line numbers are incorrect as well as the text around the match is also incorrect...
Could it be because TextCrawler expects "\r\n" line ending everywhere but in fact it is "\n" ?

Re: Error showing search results for a file with mixed EOL

Posted: Wed Sep 22, 2021 10:42 am
by d0vgan
Also I'm having a small feature request regarding the lines shown above/below the search results. As the lines above/below are a context added to the actual search result, could we have a new option to specify the color of these above/below lines?
Here as a visual example of what I mean (the lines above/below have grey color):
Image

Re: Error showing search results for a file with mixed EOL

Posted: Mon Oct 04, 2021 3:41 pm
by d0vgan
Any update on this, please?
I'm using a licensed version in my work, and the example with mixed EOL reflects the actual source code in the repository.
Once this issue in TextCrawler Pro is fixed, I'll recommend it to my colleagues!

Re: Error showing search results for a file with mixed EOL

Posted: Thu Oct 07, 2021 11:30 am
by DigitalVolcano
Thanks for posting this - it looks like a possible issue with previewing mixed line endings. I've logged it to be fixed in an update.

I'll add a request for the line colour option too.

Re: Error showing search results for a file with mixed EOL

Posted: Tue Jan 04, 2022 9:11 am
by d0vgan
Happy New Year!
Is there any planned date of the new release of Text Crawler?

Re: Error showing search results for a file with mixed EOL

Posted: Mon Apr 18, 2022 10:33 am
by d0vgan
Hello? Sorry for disturbing, but, just for comparison, since October 2021 there were 10 releases of Notepad++ (from 8.1.6 to 8.3.3) and two releases of its NppExec plugin (0.8 and 0.8.1). And no update in TextCrawler.
If TextCrawler was open-source, most likely I would have already made the changes mentioned above myself...

Re: Error showing search results for a file with mixed EOL

Posted: Wed Apr 20, 2022 2:08 pm
by DigitalVolcano
Well there is just me, and Duplicate Cleaner has taken priority recently! However this was logged as an issue and I'll see if I can push through a fix soon.

Re: Error showing search results for a file with mixed EOL

Posted: Mon May 09, 2022 9:25 am
by DigitalVolcano
Now fixed in version 3.1.3