Skip to content

Commit 5de8bb8

Browse files
another
1 parent 727aebb commit 5de8bb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def end_of_line(cursor_offset, line):
4343
@on('\x1bl')
4444
@on('\x1bOC')
4545
@on('\x1b[5C')
46+
@on('\x1b[1;5C')
4647
def forward_word(cursor_offset, line):
4748
patt = r"\S\s"
4849
match = re.search(patt, line[cursor_offset:]+' ')
@@ -53,6 +54,7 @@ def forward_word(cursor_offset, line):
5354
@on('\x1bOD')
5455
@on('\x1bB')
5556
@on('\x1b[5D')
57+
@on('\x1b[1;5D')
5658
def back_word(cursor_offset, line):
5759
return (last_word_pos(line[:cursor_offset]), line)
5860

0 commit comments

Comments
 (0)