Skip to content

Commit f2efab9

Browse files
committed
_pyrepl: Add M-_ binding for yank-arg
Just like in readline, this does exactly the same thing as M-.
1 parent 62a6e89 commit f2efab9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/_pyrepl/historical_reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ def collect_keymap(self) -> tuple[tuple[KeySpec, CommandName], ...]:
264264
(r"\C-s", "forward-history-isearch"),
265265
(r"\M-r", "restore-history"),
266266
(r"\M-.", "yank-arg"),
267+
(r"\M-_", "yank-arg"),
267268
(r"\<page down>", "history-search-forward"),
268269
(r"\x1b[6~", "history-search-forward"),
269270
(r"\<page up>", "history-search-backward"),

0 commit comments

Comments
 (0)