You are here: PSPad forum > Bug report / Hlášení chyb > "Diff with file content on disk" is not working with external diff tool

"Diff with file content on disk" is not working with external diff tool

#1 "Diff with file content on disk" is not working with external diff tool

Posted by: HZe | Date: 10/04/2016 08:30 | IP: IP Logged

Hi,

when configuring an external text diff tool, you can decide whether to save the file first. For an external tool that makes sense.

However, when using the diff of the current edit buffer with the content on disk, there is currently no way to get it right with the external diff tool. If you save, you compare only the new content and get no differences, if you don't save, you get only the old content and no differences.

The "Diff with file content on disk" would need to save the current buffer into a temp. file and call the external tool with the original file name and the temp file name. This way it would work.
Optionally, after the external diff finishes, a modified content of the temp file should trigger a question to read it into the edit buffer.

Regards
Holger

Options: Reply | Quote | Up ^


#2 Re: "Diff with file content on disk" is not working with external diff tool

Posted by: pspad | Date: 11/24/2016 14:09 | IP: IP Logged

Fixed. In case your file is modified and you compare with content on the disk or with file, PSPad will save open file into temporary one and send it to compare tool.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2017 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák