aboutsummaryrefslogtreecommitdiffstats
path: root/src/editor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-20 10:30:31 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-20 10:30:31 +0200
commiteb2d19e51a87ac5377f47d5a5a2ce4e40a4450c4 (patch)
tree357ac67df6c6af14b38d4c869a5b3b452b7cd92f /src/editor.py
parentsplit up textarea and line into two files (diff)
downloadpytagomacs-eb2d19e51a87ac5377f47d5a5a2ce4e40a4450c4.tar.gz
pytagomacs-eb2d19e51a87ac5377f47d5a5a2ce4e40a4450c4.tar.bz2
pytagomacs-eb2d19e51a87ac5377f47d5a5a2ce4e40a4450c4.tar.xz
m style
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/editor.py')
-rw-r--r--src/editor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/editor.py b/src/editor.py
index 33ab321..5148bac 100644
--- a/src/editor.py
+++ b/src/editor.py
@@ -466,7 +466,7 @@ class TextArea():
if d == '~': stored = ctrl('A')
elif d == ';':
d = sys.stdin.read(1)
- if d == '5': store(sys.stdin.read(1), {'C':-4, 'D':-3, 'A':-1, 'B':-2}) # ctrl
+ if d == '5': store(sys.stdin.read(1), {'C':-4, 'D':-3, 'A':-1, 'B':-2}) # ctrl
elif d == '2': # shift
store(sys.stdin.read(1), {'C':ctrl('F'), 'D':ctrl('B')})
if stored is not None:
@@ -485,8 +485,7 @@ class TextArea():
d = sys.stdin.read(1)
if ord('a') <= ord(d.lower()) <= ord('z'): break
if d == '~': break
- elif d == 'O':
- store(sys.stdin.read(1), {'H':ctrl('A'), 'F':ctrl('E')})
+ elif d == 'O': store(sys.stdin.read(1), {'H':ctrl('A'), 'F':ctrl('E')})
elif store(d, {'P':-1, 'p':-1, 'N':-2, 'n':-2, 'B':-3, 'b':-3, 'F':-4, 'f':-4}): pass
elif d.lower() == 'w':
if not self.lines[self.y].copy():