[gedit-plugins] bracketcompletion: wrong behavior when editing just before EOF. Fixes #687444
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] bracketcompletion: wrong behavior when editing just before EOF. Fixes #687444
- Date: Tue, 2 Apr 2013 08:05:12 +0000 (UTC)
commit 220f224349cd59b986f05b90a92d1f69c519faac
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Apr 2 10:04:29 2013 +0200
bracketcompletion: wrong behavior when editing just before EOF. Fixes #687444
plugins/bracketcompletion/bracketcompletion.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/bracketcompletion/bracketcompletion.py b/plugins/bracketcompletion/bracketcompletion.py
index 3a2df6a..5a02475 100644
--- a/plugins/bracketcompletion/bracketcompletion.py
+++ b/plugins/bracketcompletion/bracketcompletion.py
@@ -158,7 +158,7 @@ class BracketCompletionPlugin(GObject.Object, Gedit.ViewActivatable):
end.forward_word_end()
word = self._doc.get_text(start, end)
- if not word and end.forward_char():
+ if not word:
word = start.get_char()
if word.isspace():
word = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]