From ccab001c3de4be1406867c9dbe8d903a39923062 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Tue, 19 Oct 2004 19:29:40 +0000 Subject: [PATCH] [Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann --- Lib/curses/textpad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py index cd4813bdfe0..e23ee02b966 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()