mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
A metadata-aware pager emits a version-only OSC 1717 record (no fields) as its first output, to announce it speaks the diff-line-metadata protocol so lazygit can probe for it. It isn't per-line metadata, so on a real render it must be swallowed whole rather than lingering in the accumulator and attaching to the following diff-header line (or, if newline-terminated, producing a phantom blank line). Drop any OSC 1717 payload with no fields at its terminator; per-line payloads always have fields, so they're kept. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>