(Fix): removed the non-functional automata background overlay from View() (the Frame() was never called, and the black-space placeholder caused EEEE garbage characters on some terminals)

This commit is contained in:
2026-07-18 22:00:45 +05:30
parent eedde29e03
commit c646c7a18b
2 changed files with 4 additions and 6 deletions

View File

@@ -461,11 +461,9 @@ func (m *Model) View() string {
content := m.renderLayout()
if m.automata != nil && m.width > 0 && m.height > 0 {
if m.width > 0 && m.height > 0 {
return lipgloss.Place(m.width, m.height, lipgloss.Center, lipgloss.Center,
content,
lipgloss.WithWhitespaceChars(" "),
lipgloss.WithWhitespaceForeground(lipgloss.Color("0")),
)
}
return content
@@ -474,7 +472,6 @@ func (m *Model) View() string {
func (m *Model) renderLayout() string {
// top bar: power hints
top := m.renderPowerHints()
top = lipgloss.NewStyle().Width(80).Align(lipgloss.Left).Render(top)
// avatar + form side by side
avatar := m.renderAvatar()