meld r1057 - trunk
- From: stevek svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1057 - trunk
- Date: Sat, 27 Sep 2008 13:03:55 +0000 (UTC)
Author: stevek
Date: Sat Sep 27 13:03:55 2008
New Revision: 1057
URL: http://svn.gnome.org/viewvc/meld?rev=1057&view=rev
Log:
Bug 525343 â Hash (#) in a filename breaks syntax highlighting (Ivan Sergeyenko)
Modified:
trunk/filediff.py
Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py (original)
+++ trunk/filediff.py Sat Sep 27 13:03:55 2008
@@ -50,7 +50,8 @@
def set_highlighting_enabled(buf, fname, enabled):
if enabled:
import gnomevfs
- mime_type = gnomevfs.get_mime_type( os.path.abspath(fname) )
+ mime_type = gnomevfs.get_mime_type(
+ gnomevfs.make_uri_from_input(os.path.abspath(fname)) )
man = gsv.SourceLanguagesManager()
gsl = man.get_language_from_mime_type( mime_type )
if gsl:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]