Skip to content

pdb repeats w 0 on empty line when there are commands in cmdqueue #120769

Closed
@gaogaotiantian

Description

@gaogaotiantian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions