We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447623d commit b852602Copy full SHA for b852602
bpython/scrollfrontend/manual_readline.py
@@ -81,7 +81,7 @@ def backspace(cursor_offset, line):
81
if not line[:cursor_offset].strip(): #if just whitespace left of cursor
82
front_white = len(line[:cursor_offset]) - len(line[:cursor_offset].lstrip())
83
to_delete = ((front_white - 1) % INDENT) + 1
84
- return cursor_offset - to_delete, line[:to_delete]
+ return cursor_offset - to_delete, line[:to_delete] + line[cursor_offset:]
85
return (cursor_offset - 1,
86
line[:cursor_offset - 1] + line[cursor_offset:])
87
0 commit comments