[meld] Fix for recent syntax highlighting detection for file-less panes
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix for recent syntax highlighting detection for file-less panes
- Date: Thu, 20 Oct 2011 19:41:45 +0000 (UTC)
commit 1af1740e77af57c2680f1f69739831f652dc0ebe
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Oct 19 08:21:06 2011 +1000
Fix for recent syntax highlighting detection for file-less panes
meld/filediff.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 42b715e..595a790 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]