mirror of
https://github.com/erkin/ponysay.git
synced 2025-01-31 18:36:43 +01:00
alert fix for --edit
This commit is contained in:
parent
b9020d1f36
commit
f4c02f96b4
1 changed files with 3 additions and 0 deletions
|
@ -411,6 +411,7 @@ class TextArea:
|
|||
else:
|
||||
mark = x
|
||||
alert('Mark set')
|
||||
alerted = True
|
||||
elif ord(d) == ord('X') - ord('@'):
|
||||
alert('C-x')
|
||||
alerted = True
|
||||
|
@ -462,6 +463,7 @@ class TextArea:
|
|||
if ord(d) == ord('P') - ord('@'):
|
||||
if y == 0:
|
||||
alert('At first line')
|
||||
alerted = True
|
||||
else:
|
||||
y -= 1
|
||||
mark = None
|
||||
|
@ -514,6 +516,7 @@ class TextArea:
|
|||
elif d == 'B':
|
||||
if y == len(datalines) - 1:
|
||||
alert('At last line')
|
||||
alerted = True
|
||||
else:
|
||||
stored = chr(ord('N') - ord('@'))
|
||||
elif d == 'C':
|
||||
|
|
Loading…
Reference in a new issue