mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-119034, REPL: Change page up/down keys to search in history (#123607)
Change <page up> and <page down> keys of the Python REPL to history search forward/backward. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
d683f49a7b
commit
8311b11800
5 changed files with 113 additions and 4 deletions
|
@ -438,7 +438,7 @@ class _ReadlineWrapper:
|
|||
else:
|
||||
line = self._histline(line)
|
||||
if buffer:
|
||||
line = "".join(buffer).replace("\r", "") + line
|
||||
line = self._histline("".join(buffer).replace("\r", "") + line)
|
||||
del buffer[:]
|
||||
if line:
|
||||
history.append(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue