From: Andrew M. Kuchling Date: Tue, 19 Oct 2004 19:34:07 +0000 (+0000) Subject: [Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan... X-Git-Tag: v2.3.5c1~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=919491d9bbad97e7b161d9c8ae11f1000bb170b8;p=thirdparty%2FPython%2Fcpython.git [Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann --- diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py index bfc270addb6e..2d839cdaa7f4 100644 --- a/Lib/curses/textpad.py +++ b/Lib/curses/textpad.py @@ -109,6 +109,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()