Off-by-one error in highlighting searched words

Post your bug reports here.
Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Off-by-one error in highlighting searched words

Post by Dainis »

When searching for phrase "hdr" with "find whole words only" selected then in text:

struct in_atm_arp_hdr *hdr;

the "*hd" is highlighted. Instead the "hdr" should be highlighted and "*" not highlighted. It is not just a drawing or fonts problem, because if you copy the selection to clipboard and paste in some other application you can verify that you will get "*hd".

Compare It! Unicode version 4.0.1.2141

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

If you create empty file with this single line, can you see the problem?

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

Yes - it is sufficient to have just this single line even without \r \n line ending symbols. You can compare this one line file to self.
The same problem is also in older version 4.0.2114

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

One extra thing I've noticed is that help displays only the subject tree, but content of the pages is not available ("The address is not valid").
In the section "Advanced Functions" there is typo in the subject "Patial matching"

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

Yes, now I see the problem - I have missed "Whole word" option. I will fix it in nearest update.
You can't see any help page, or just in some cases?

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

I can't see any page in help. I have IE7. The initial page of help from "Welcome to Compare It!" section displays "Navigation to webpage was canceled". When I click other sections (e.g. "Quick Start") I get "The address is not valid.". Properties of page show:
Address: "res://ieframe.dll/syntax.htm#mk:@MSITStore:C:\Program%20Files\Compare%20It!"
Size 3948

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

Are you on Vista?

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

No. WinXP SP3

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

I have found this in other forum, will it help you?
On Windows XP you can simply right-click on the CHM file, select Properties, and click on the "Unblock" button. Click "Apply" and the content should be visible.

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

Unblocking helped. Thanks for suggestion!
I did not knew that newer Windows versions can affect CHM files.

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

Neither did I :) Now I think I will add this to FAQ. Unless I find some signing option.

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

Hello,

I can confirm that word search bug is fixed in build 2143.
But I've noticed that if I compare that 1 line file with directory on other drive that does not contain such file CompareIt crashes in address 0xcf387.

In my case original file was "G:\2.txt" and directory was "C:\Programm Files\". With directory "C:\" it does not crash. Should depend in some way to directory content.

Dainis

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

How do you invoke CompareIt?
wincmp3 "G:\2.txt" "c:\" ?

Dainis
Posts: 17
Joined: Thu Sep 09, 2004 7:31 am
Location: Riga, Latvia

Post by Dainis »

I run it through the shortcut command for Total Commander 7.04.
Command: C:\Program Files\Compare It!\wincmp3.exe
Parameters: %P%N %T
Start path: C:\Program Files\Compare It!\

Where:
%P causes the source path to be inserted into the command line, including a backslash (\) at the end.
%N places the filename under the cursor into the command line.
%T inserts the current target path. Especially useful for packers.

If I directly execute:
"C:\Program Files\Compare It!\wincmp3.exe" "g:\2.txt" "c:\Program Files\"

I do not see a CompareIt! crash. Strange...

brahman
Posts: 180
Joined: Thu Jan 11, 2007 6:18 pm

Post by brahman »

What happens if you invoke CI the following way:

Add the following line with your full path to CompareIt! file to wincmd.ini (in windows or program folder):

[Configuration]
Comparetool=C:\Program Files\Synchronize It!\wincmp3.exe

Make a button bar item with:
Command: cm_CompareFilesByContent
Icon File with full path to CompareIt! file and select icon you like.
Appropriate description. Done.

Advantage: You can now compare two files in the SAME folder as well as selected files in source and target. Or only select source files and CompareIt! will now automatically compare target file with same name.

Do you still have the same problem now?

Regards,

Brahman

Post Reply