From 7aa09842d2e939949ef9a605fee05150efaee05a Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Thu, 6 Aug 2026 15:43:44 +1000 Subject: [PATCH] =?UTF-8?q?TUI:=20fix=20broken=20sort-marker=20=E2=80=94?= =?UTF-8?q?=20plain=20=E2=96=BC=20text=20(ANSI=20in=20truncated=20titles?= =?UTF-8?q?=20corrupted=20the=20header)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d788b78..e522724 100644 --- a/main.go +++ b/main.go @@ -91,8 +91,10 @@ func buildColumns(sortMode int) []table.Column { {Title: "Task", Width: 20}, } if idx := sortColumn(sortMode); idx >= 0 { - marker := lipgloss.NewStyle().Foreground(lipgloss.Color("#00d4ff")).Bold(true).Render("▼") - cols[idx].Title = marker + " " + cols[idx].Title + // Plain text marker — NO ANSI styling inside the title: column titles get + // runewidth-truncated, which mangles escape sequences (eaten text, broken + // headers). The bare ▼ is the highlight. + cols[idx].Title = "▼ " + cols[idx].Title } return cols }