gitui-org / gitui-org/gitui

Unresponsive UI when copying a line from a modified file

Open
#1,638 1 comment 0 reactions 0 assignees View on GitHub
bug dormant
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.