summaryrefslogtreecommitdiff
path: root/Lib/curses
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:29:40 +0000
committerAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:29:40 +0000
commitbaee1b04052513f60536c13d944c5759a1573cce (patch)
tree29a23ab72d8a450b28f6043be12d9aa320f8b20f /Lib/curses
parent0434edcb3b6739688f5520efce7ef9efd5c51da9 (diff)
downloadcpython-baee1b04052513f60536c13d944c5759a1573cce.tar.gz
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
Diffstat (limited to 'Lib/curses')
-rw-r--r--Lib/curses/textpad.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py
index cd4813bdfe..e23ee02b96 100644
--- a/Lib/curses/textpad.py
+++ b/Lib/curses/textpad.py
@@ -111,6 +111,8 @@ class Textbox:
if x == 0 and self._end_of_line(y) == 0:
self.win.deleteln()
else:
+ # first undo the effect of self._end_of_line
+ self.win.move(y, x)
self.win.clrtoeol()
elif ch == ascii.FF: # ^l
self.win.refresh()