[gedit] Fix crash updating snippets env for remote files
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix crash updating snippets env for remote files
- Date: Fri, 20 Jan 2012 22:00:51 +0000 (UTC)
commit 312259b614e6d193bf69f9eb7a5f1be1030f5193
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Fri Jan 20 23:00:11 2012 +0100
Fix crash updating snippets env for remote files
plugins/snippets/snippets/document.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index dbc3d16..289f117 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -358,7 +358,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
def env_get_document_path(self, buf):
location = buf.get_location()
- if location:
+ if location and Gedit.utils_location_has_file_scheme(location):
return location.get_path()
else:
return ''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]