Skip to content

Commit ff56462

Browse files
authored
gh-147950: Additionally bind yank-arg to M-_ in pyrepl (#147949)
1 parent 7ce9eb1 commit ff56462

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/_pyrepl/historical_reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def collect_keymap(self) -> tuple[tuple[KeySpec, CommandName], ...]:
265265
(r"\C-s", "forward-history-isearch"),
266266
(r"\M-r", "restore-history"),
267267
(r"\M-.", "yank-arg"),
268+
(r"\M-_", "yank-arg"),
268269
(r"\<page down>", "history-search-forward"),
269270
(r"\x1b[6~", "history-search-forward"),
270271
(r"\<page up>", "history-search-backward"),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bind ``yank-arg`` to :kbd:`M-_` in the REPL.

0 commit comments

Comments
 (0)