mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
HyperLinkInLine, DiffLineMetadataInLine and BufferLineForViewLine each repeated the same preamble: take the lock, refresh the view lines, range- check the view line, and guard against a stale viewLines entry pointing past a shrunk buffer. They all need that mapping to stay consistent with the buffer they then read, so the logic belongs in one place. Extract it into bufferLineForViewLine and have all three call it. Behavior-preserving. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||