Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccab001

Browse files
committed
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
1 parent a13ea55 commit ccab001

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/curses/textpad.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def do_command(self, ch):
111111
if x == 0 and self._end_of_line(y) == 0:
112112
self.win.deleteln()
113113
else:
114+
# first undo the effect of self._end_of_line
115+
self.win.move(y, x)
114116
self.win.clrtoeol()
115117
elif ch == ascii.FF: # ^l
116118
self.win.refresh()

0 commit comments

Comments
 (0)