[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann

This commit is contained in:
Andrew M. Kuchling 2004-10-19 19:29:40 +00:00
parent a13ea5572a
commit ccab001c3d
1 changed files with 2 additions and 0 deletions

View 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()