[gedit-plugins/gnome-3-8] terminal: Fix Change Directory command



commit 882543a432e6242c0d4ee4402f17950cb3949626
Author: Adam Dingle <adam yorba org>
Date:   Mon May 27 11:05:05 2013 -0400

    terminal: Fix Change Directory command
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701085

 plugins/terminal/terminal.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index c2faf0b..cce0b04 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -290,7 +290,7 @@ class TerminalPlugin(GObject.Object, Gedit.WindowActivatable):
         doc = self.window.get_active_document()
         if doc:
             location = doc.get_location()
-            if location and location.has_uri_scheme(location, "file"):
+            if location and location.has_uri_scheme("file"):
                 directory = location.get_parent()
                 return directory.get_path()
         return None


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]