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

Function back_word

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

Source from the content-addressed store, hash-verified

217@edit_keys.on("<Ctrl-LEFT>")
218@edit_keys.on("<Esc+LEFT>")
219def back_word(cursor_offset, line):
220 return (last_word_pos(line[:cursor_offset]), line)
221
222
223@edit_keys.on("<DELETE>")

Callers 1

test_back_wordMethod · 0.90

Calls 1

last_word_posFunction · 0.85

Tested by 1

test_back_wordMethod · 0.72