Skip to content

Unresponsive UI when copying a line from a modified file #1638

Open
@matheusjunior

Description

@matheusjunior

Describe the bug
Copying a line using [y] makes the UI unresponsive. It takes a long time, roughly a minute or possibly more, on a reasonably sized repo for it to get responsive again.

To Reproduce

  1. Download a reasonably sized repo, e.g., https://github.com/ava-labs/avalanchego
  2. Make a minor change on any given file, e.g., add fadsfasd to README.md.
  3. Save the modified file.
  4. Open gitui on Status tab [1]
  5. Navigate to modified file.
  6. Copy any line in the highlighted hunk.

Expected behavior
UI does not get stuck when copying a single line.

Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • OS/Distro + Version: Ubuntu 20.04.6 LTS 5.15.0-69-generic
  • GitUI Version 0.22.1
  • Rust version: rustc 1.66.1 (90743e729 2023-01-10)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdormantMarked by stale bot on close

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions