(cursor_offset, line)
| 201 | @edit_keys.on("<Ctrl-RIGHT>") |
| 202 | @edit_keys.on("<Esc+RIGHT>") |
| 203 | def forward_word(cursor_offset, line): |
| 204 | match = forward_word_re.search(line[cursor_offset:] + " ") |
| 205 | delta = match.end() - 1 if match else 0 |
| 206 | return (cursor_offset + delta, line) |
| 207 | |
| 208 | |
| 209 | def last_word_pos(string): |