Open
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
- Download a reasonably sized repo, e.g., https://github.com/ava-labs/avalanchego
- Make a minor change on any given file, e.g., add
fadsfasd
to README.md. - Save the modified file.
- Open gitui on Status tab [1]
- Navigate to modified file.
- 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.