]> granicus.if.org Git - python/commitdiff
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan...
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Oct 2004 19:29:40 +0000 (19:29 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Oct 2004 19:29:40 +0000 (19:29 +0000)
Lib/curses/textpad.py

index cd4813bdfe0d91a81be63b8494133783fed46ee5..e23ee02b96612ac80513f4bba212132b41451486 100644 (file)
@@ -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()