mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
Everything about a diff's content — which file and line a row belongs to, whether it's a change — is a property of the unwrapped buffer line, while the cursor, clicks and the range selection all speak in view lines, which count wrapped segments. Reading the content under the cursor therefore needs the mapping in both directions, and doing it outside gocui isn't possible: the wrapping is internal, and the caller couldn't take the view's lock across the lookup and the read. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>