mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
The escape restore (next commit) finds the row in a re-rendering focused main view that matches a target patch identity, and it has to do so while the content is still loading — i.e. against the off-screen buffer, before it is swapped in, since the displayed buffer still shows the previous render. Add the two primitives that scan needs: - OffscreenDiffLineContents exposes the per-line diff material (text, metadata, hyperlink) of the rows read so far into the off-screen render, so the resolver built last commit can run against the incoming content. - ViewLineForBufferLine maps a matched (unwrapped) buffer line back to the first view line that renders it — the inverse of BufferLineForViewLine — so the restore can scroll to and select that line once the render is swapped in. |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||