Skip to content

Commit e0d6b53

Browse files
committed
Bind up and down arrow key to history-search
1 parent 457e5e6 commit e0d6b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_pyrepl/reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def make_default_commands() -> dict[CommandName, type[Command]]:
143143
+ [(c, "self-insert") for c in map(chr, range(32, 127)) if c != "\\"]
144144
+ [(c, "self-insert") for c in map(chr, range(128, 256)) if c.isalpha()]
145145
+ [
146-
(r"\<up>", "up"),
147-
(r"\<down>", "down"),
146+
(r"\<up>", "history-search-backward"),
147+
(r"\<down>", "history-search-forward"),
148148
(r"\<left>", "left"),
149149
(r"\C-\<left>", "backward-word"),
150150
(r"\<right>", "right"),

0 commit comments

Comments
 (0)