summaryrefslogtreecommitdiffstats
path: root/Lib/curses/textpad.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:29:40 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-10-19 19:29:40 (GMT)
commitccab001c3de4be1406867c9dbe8d903a39923062 (patch)
treee8d3892b7d9997c110befe316b13518db2028d2b /Lib/curses/textpad.py
parenta13ea5572a6827674d081df74c2a1bcc1154a2d1 (diff)
downloadcpython-ccab001c3de4be1406867c9dbe8d903a39923062.zip
cpython-ccab001c3de4be1406867c9dbe8d903a39923062.tar.gz
cpython-ccab001c3de4be1406867c9dbe8d903a39923062.tar.bz2
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
Diffstat (limited to 'Lib/curses/textpad.py')
-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 cd4813b..e23ee02 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()