SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: Nosh on September 02, 2018, 07:33:40 pm

Title: vsdiff 0 byte files
Post by: Nosh on September 02, 2018, 07:33:40 pm
If you compare two files with vsdiff (vsdiff file1.txt file2.txt) where one file has a size of 0 bytes and the other not, then a dialog opens with "Files match, view them anyway?"

But if you compare two files with size 0, the compare window opens.

Should be the other way round.

Regards, Norbert
Title: Re: vsdiff 0 byte files
Post by: Clark on September 02, 2018, 09:54:52 pm
Good catch. We will look into this.
Title: Re: vsdiff 0 byte files
Post by: Dan on September 04, 2018, 07:18:59 pm
Fixed for beta 4.  Thanks for the report.
Title: Re: vsdiff 0 byte files
Post by: Nosh on October 15, 2018, 07:55:05 pm
Thank you for your fix, but it is only a partial fix.
When you compare two 0 byte files with 'vsdiff left.txt right.txt' the diff window opens instead of the dialog "files match..."
Also the left side shows an empty line and the right side 'imaginary buffer line'.

When you compare two files, where only one file has 0 bytes the diff result differs depending on if the 0 byte file comes first or second.
Title: Re: vsdiff 0 byte files
Post by: Dan on October 15, 2018, 08:13:06 pm
Thank you for your fix, but it is only a partial fix.
When you compare two 0 byte files with 'vsdiff left.txt right.txt' the diff window opens instead of the dialog "files match..."
Also the left side shows an empty line and the right side 'imaginary buffer line'.
Thanks, I'll look into this

When you compare two files, where only one file has 0 bytes the diff result differs depending on if the 0 byte file comes first or second.
I'm not sure I understand what you mean.  In my tests here, all the lines are on one side or the other as they should be.  Are you seeing something different?
Title: Re: vsdiff 0 byte files
Post by: Nosh on October 15, 2018, 08:28:04 pm
When the first file is the 0 byte file it looks like 1.png in the attachment.
When the second file is the 0 byte file it looks like 2.png in the attachment.

Empty line vs 'Imaginary Buffer Line'.
Title: Re: vsdiff 0 byte files
Post by: Dan on October 15, 2018, 08:31:18 pm
Hm.  Thank you.

I can't reproduce this one.  I noticed that the filenames on the blank files are different.  Is there a chance that one of them isn't 0 bytes?