effectiveHeaderHeight returns the header height accounting for worktree info line.
()
| 133 | |
| 134 | // effectiveHeaderHeight returns the header height accounting for worktree info line. |
| 135 | func (a *App) effectiveHeaderHeight() int { |
| 136 | if a.hasWorktreeInfo() { |
| 137 | return headerHeight + 1 |
| 138 | } |
| 139 | return headerHeight |
| 140 | } |
| 141 | |
| 142 | // renderWorktreeInfoLine renders the branch and directory info line for the header. |
| 143 | func (a *App) renderWorktreeInfoLine() string { |