aboutsummaryrefslogtreecommitdiffstats
path: root/src/editor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-10 09:10:55 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-10 09:10:55 +0200
commitdfd92df15bdaebc801b28a998fa6100dcbc16ca3 (patch)
treeb16c16dd62fe64e2ee33026ce4cb3bfc10ea8063 /src/editor.py
parentadd killring class for cleaner code (diff)
downloadpytagomacs-dfd92df15bdaebc801b28a998fa6100dcbc16ca3.tar.gz
pytagomacs-dfd92df15bdaebc801b28a998fa6100dcbc16ca3.tar.bz2
pytagomacs-dfd92df15bdaebc801b28a998fa6100dcbc16ca3.tar.xz
fix variable assignment order
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/editor.py')
-rw-r--r--src/editor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.py b/src/editor.py
index e41412f..8153635 100644
--- a/src/editor.py
+++ b/src/editor.py
@@ -139,9 +139,9 @@ class TextArea():
'''
self.fields, self.datamap, self.left, self.top, self.width, self.height = fields, datamap, left, top, width - 1, height
self.innerleft = len(max(self.fields, key = len)) + 3
+ self.killring = Killring()
self.lines = [TextArea.Line(self, self.fields[y], self.datamap[self.fields[y]], y) for y in range(len(self.fields))]
self.areawidth = self.width - self.innerleft - self.left + 1
- self.killring = Killring()
self.y, self.x, self.offx, self.mark = 0, 0, 0, None
self.last_alert, self.last_status, self.alerted = None, None, False