Skip to content

Commit 7fdf712

Browse files
authored
Merge pull request #54 from dispatchrun/one-table-header-only
run: only show function table header once
2 parents 846bbf6 + d8d7519 commit 7fdf712

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/tui.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ func (t *TUI) functionsView(now time.Time) string {
438438
functionColumnWidth := max(9, min(50, maxFunctionWidth))
439439

440440
// Render the table.
441-
b.WriteString(t.tableHeaderView(functionColumnWidth))
441+
if i == 0 {
442+
b.WriteString(t.tableHeaderView(functionColumnWidth))
443+
}
442444
for i := range rows.rows {
443445
b.WriteString(t.tableRowView(&rows.rows[i], functionColumnWidth))
444446
}

0 commit comments

Comments
 (0)