Commit 1af1740e authored by Kai Willadsen's avatar Kai Willadsen

Fix for recent syntax highlighting detection for file-less panes

parent 39ef031b
......@@ -1099,6 +1099,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
filename = self.bufferdata[i].filename
if filename:
langs.append(srcviewer.get_language_from_file(filename))
else:
langs.append(None)
# If we have only one identified language then we assume that all of
# the files are actually of that type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment