]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-147950: Additionally bind `yank-arg` to `M-_` in pyrepl (#147949)
authorJonathan Oberländer <git@l3vi.de>
Sat, 18 Jul 2026 09:56:14 +0000 (11:56 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 09:56:14 +0000 (11:56 +0200)
Lib/_pyrepl/historical_reader.py
Misc/NEWS.d/next/Library/2026-03-31-21-25-44.gh-issue-147950.5JR0sK.rst [new file with mode: 0644]

index 09b969d80bc231fc782927f9db6c81e45b0a63a3..77cd12e66e03c62c07cdb42ef972b159b010f2dd 100644 (file)
@@ -265,6 +265,7 @@ class HistoricalReader(Reader):
             (r"\C-s", "forward-history-isearch"),
             (r"\M-r", "restore-history"),
             (r"\M-.", "yank-arg"),
+            (r"\M-_", "yank-arg"),
             (r"\<page down>", "history-search-forward"),
             (r"\x1b[6~", "history-search-forward"),
             (r"\<page up>", "history-search-backward"),
diff --git a/Misc/NEWS.d/next/Library/2026-03-31-21-25-44.gh-issue-147950.5JR0sK.rst b/Misc/NEWS.d/next/Library/2026-03-31-21-25-44.gh-issue-147950.5JR0sK.rst
new file mode 100644 (file)
index 0000000..48c50ef
--- /dev/null
@@ -0,0 +1 @@
+Bind ``yank-arg`` to :kbd:`M-_` in the REPL.