mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
These three cells are built and styled in one step, so their width can only be measured by stripping the styling off again. A later commit needs those widths to reserve space for the columns they go into. Pull the text out into getHashText, getActionText and a getBisectStatusText that no longer styles what it returns, and apply the styling at the call site. A commit with no hash, such as a "break" or "update-ref" todo, now gets an empty hash cell instead of one holding nothing but colour codes. Nothing can see the difference: both render as the same number of blank columns. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>