mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-12 07:46:44 +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:
|
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':
|
||||||
|
|
Loading…
Reference in a new issue