Skip to content

Previous prompts lost after editing #3926

Description

@andresdelfino

Describe the bug

Previous prompts are lost when editing them.

Affected version

1.0.65

Steps to reproduce the behavior

  1. Go to a previous prompt (for example, using the up arrow)
  2. Edit the prompt (clear it completely, or edit it partially)
  3. Press enter

Original prompt is now lost. This is specially painful when the line was cleared completely.

Expected behavior

Original prompt remains in history.

Additional context

Ubuntu 24.04.4.
x86_64.
GNOME Terminal 3.52.0.
zsh 5.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions