Skip to content

Commit 8e5d9ef

Browse files
committed
Change the default mapping of the keys Home and End
to go to the start/end of the current line instead of the start/end of the whole multi-line block.
1 parent aa4f3ac commit 8e5d9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrepl/reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def make_default_syntax_table():
152152
(r'\<delete>', 'delete'),
153153
(r'\<backspace>', 'backspace'),
154154
(r'\M-\<backspace>', 'backward-kill-word'),
155-
(r'\<end>', 'end'),
156-
(r'\<home>', 'home'),
155+
(r'\<end>', 'end-of-line'), # was 'end'
156+
(r'\<home>', 'beginning-of-line'), # was 'home'
157157
(r'\<f1>', 'help'),
158158
(r'\EOF', 'end'), # the entries in the terminfo database for xterms
159159
(r'\EOH', 'home'), # seem to be wrong. this is a less than ideal

0 commit comments

Comments
 (0)