Skip to content

VcView: use extension with temp files so syntax highlight correct (#459)

Alan Suran requested to merge alan1apds/meld:tempextension into master

When comparing a file with its previous version, sometimes the syntax highlighting is incorrect in the previous version. This is because the algorithm used by the "LanguageManager.get_language_from_file" (and ultimately gio) uses the file extension first to determine the file language. When the local file has an extension and the remote file does not, the language manager might pick a different language for the remote.

Since the files being compared are the same one, just
different versions, use the local extension for the
remote temp file.

See Issue #459 (closed)

Merge request reports

Loading