diff --git a/main.go b/main.go index e8e5e3c703fc1b204ad2ea83c38b797848ed0b2d..91faabc067600cd0cd2a7111382d86340cb699e3 100644 --- a/main.go +++ b/main.go @@ -150,11 +150,11 @@ func (m *mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // Save draft to disk if msg.ComposerState != nil { draft := msg.ComposerState.ToDraft() - go func() { - if err := config.SaveDraft(draft); err != nil { - log.Printf("Error saving draft: %v", err) - } - }() + + if err := config.SaveDraft(draft); err != nil { + log.Printf("Error saving draft: %v", err) + } + } m.current = tui.NewChoice() m.current, _ = m.current.Update(tea.WindowSizeMsg{Width: m.width, Height: m.height}) diff --git a/tui/mailing_list.go b/tui/mailing_list.go index 2a79da2cabb69daca4c136aafe23a566d5267adc..9f64aca2266bffdf2c823ff91cd3a4116a756cce 100644 --- a/tui/mailing_list.go +++ b/tui/mailing_list.go @@ -29,10 +29,10 @@ func NewMailingListEditor() *MailingListEditor { addr.Placeholder = "e.g., alice@example.com, bob@example.com" return &MailingListEditor{ - nameInput: name, - addrInput: addr, - focus: 0, - editIndex: -1, + nameInput: name, + addrInput: addr, + focus: 0, + editIndex: -1, } } diff --git a/view/html.go b/view/html.go index 52f5102968cc3fab696ae80fea36730cc3fed0d9..818d6ef221de970ec023d644dce891ec8b3a1c04 100644 --- a/view/html.go +++ b/view/html.go @@ -56,7 +56,6 @@ func getTerminalCellSize() int { return defaultCellHeight } - // hyperlinkSupported checks if the terminal supports OSC 8 hyperlinks. func hyperlinkSupported() bool { term := strings.ToLower(os.Getenv("TERM"))