alert fix for --edit

This commit is contained in:
Mattias Andrée 2012-10-30 21:44:17 +01:00
parent b9020d1f36
commit f4c02f96b4

View file

@ -411,6 +411,7 @@ class TextArea:
else: else:
mark = x mark = x
alert('Mark set') alert('Mark set')
alerted = True
elif ord(d) == ord('X') - ord('@'): elif ord(d) == ord('X') - ord('@'):
alert('C-x') alert('C-x')
alerted = True alerted = True
@ -462,6 +463,7 @@ class TextArea:
if ord(d) == ord('P') - ord('@'): if ord(d) == ord('P') - ord('@'):
if y == 0: if y == 0:
alert('At first line') alert('At first line')
alerted = True
else: else:
y -= 1 y -= 1
mark = None mark = None
@ -514,6 +516,7 @@ class TextArea:
elif d == 'B': elif d == 'B':
if y == len(datalines) - 1: if y == len(datalines) - 1:
alert('At last line') alert('At last line')
alerted = True
else: else:
stored = chr(ord('N') - ord('@')) stored = chr(ord('N') - ord('@'))
elif d == 'C': elif d == 'C':