[gedit-plugins] get_real_indent_width never worked
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] get_real_indent_width never worked
- Date: Sun, 30 May 2010 18:41:53 +0000 (UTC)
commit fd647c1c76d1aa4ab9ad943b68cbaaab16c7f693
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sun May 30 20:41:21 2010 +0200
get_real_indent_width never worked
plugins/smartspaces/smartspaces.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/smartspaces/smartspaces.py b/plugins/smartspaces/smartspaces.py
index da9cd1e..e8f20eb 100644
--- a/plugins/smartspaces/smartspaces.py
+++ b/plugins/smartspaces/smartspaces.py
@@ -54,7 +54,7 @@ class SmartSpacesViewHelper(object):
def on_notify(self, view, pspec):
self.update_active()
- def get_real_indent_width(view):
+ def get_real_indent_width(self, view):
indent_width = view.get_indent_width()
if indent_width < 0:
@@ -87,9 +87,10 @@ class SmartSpacesViewHelper(object):
# If the previus chars are spaces, try to remove
# them until the previus tab stop
- max_move = offset % get_real_indent_width(view)
+ max_move = offset % self.get_real_indent_width(view)
+
if max_move == 0:
- max_move = get_real_indent_width(view)
+ max_move = self.get_real_indent_width(view)
moved = 0
while moved < max_move and prev.get_char() == ' ':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]