[gedit-plugins] terminal: Fix Change Directory command
- From: Adam Dingle <adamd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] terminal: Fix Change Directory command
- Date: Mon, 27 May 2013 15:07:17 +0000 (UTC)
commit e895517dd62b6bfacb70471518d3630f3a1326e2
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 aadfda1..e99e900 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -311,7 +311,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]