[gedit] Test first tab trigger character on text, not iter
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Test first tab trigger character on text, not iter
- Date: Wed, 15 Aug 2012 07:52:13 +0000 (UTC)
commit 44ae5970d9961a64c2bee52eb33d185b24842978
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Wed Aug 15 09:52:04 2012 +0200
Test first tab trigger character on text, not iter
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 322a66b..f482723 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -613,7 +613,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
# Make sure first char is valid
while not start.equal(end) and \
- not helper.is_first_tab_trigger_character(start):
+ not helper.is_first_tab_trigger_character(start.get_char()):
start.forward_char()
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]