Unresponsive UI when copying a line from a modified file
- 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
Assessment
This issue has not been assessed yet.