Skip to content

Pasting text deletes content after cursor instead of inserting #325

@thedavidweng

Description

@thedavidweng

Expected Behavior

When I paste text into the input box, the pasted text should be inserted at the current cursor position, keeping the existing text before and after the cursor unchanged.

Actual Behavior

When I paste text into the Command Code input box, the text after the cursor is deleted. The pasted content replaces everything from the cursor position to the end of the line, instead of being inserted at the cursor and preserving the remaining text.

Command Code Version

0.25.0

Operating System

macOS

Terminal/IDE

WarpTerminal

Shell

zsh

Additional context

The usual expectation (and behavior in most editors/inputs) is that pasting inserts text at the cursor without deleting the following text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions