MCPcopy Create free account
hub / github.com/bpython/bpython / delete_from_cursor_back

Function delete_from_cursor_back

bpython/curtsiesfrontend/manual_readline.py:257–258  ·  view source on GitHub ↗
(cursor_offset, line)

Source from the content-addressed store, hash-verified

255
256@edit_keys.on(config="clear_line_key")
257def delete_from_cursor_back(cursor_offset, line):
258 return 0, line[cursor_offset:]
259
260
261delete_rest_of_word_re = LazyReCompile(r"\w\b")

Callers 1

Calls

no outgoing calls

Tested by 1