Bug report
Bug description:
If you do a n ;; p 1 in pdb, the next time you entry an empty line (meant for repeat last command), it will repeat w 0 due to #119882. It's supposed to repeat p 1 (arguably n ;; p1 but we never do that). As user never inputs w 0 by their own, the current behavior might not be desired.
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
No response
Linked PRs