summaryrefslogtreecommitdiff
path: root/internal/atable
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 10:00:30 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 10:00:30 +0300
commit81d974621267ae9d1f50e3d7548b6ed039758ce8 (patch)
treede915a3835e3ff06603963dad2f4e4a4345a8848 /internal/atable
parent5d32fb6d89450fa387f9f4c51b561324075a4964 (diff)
Fix editor invocation and table alignment
Diffstat (limited to 'internal/atable')
-rw-r--r--internal/atable/table.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/atable/table.go b/internal/atable/table.go
index 701ea6f..5e74864 100644
--- a/internal/atable/table.go
+++ b/internal/atable/table.go
@@ -465,12 +465,12 @@ func (m *Model) renderRow(r int) string {
if m.cols[i].Width <= 0 {
continue
}
- style := lipgloss.NewStyle().Width(m.cols[i].Width).MaxWidth(m.cols[i].Width).Inline(true)
- cellStyle := m.styles.Cell
+ style := m.styles.Cell
if r == m.cursor && i == m.colCursor {
- cellStyle = m.styles.Selected
+ style = m.styles.Selected
}
- renderedCell := cellStyle.Render(style.Render(ansi.Truncate(value, m.cols[i].Width, "…")))
+ style = style.Width(m.cols[i].Width).MaxWidth(m.cols[i].Width).Inline(true)
+ renderedCell := style.Render(ansi.Truncate(value, m.cols[i].Width, "…"))
s = append(s, renderedCell)
}