From 96e3b31c8d1b8905c73d3844b411761b0d889144 Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Sun, 14 Jul 2024 12:30:16 -0700 Subject: [PATCH] update to more texteditor cleanup --- mail/send.go | 2 +- terminal/app.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/send.go b/mail/send.go index 74e14304..13235cf0 100644 --- a/mail/send.go +++ b/mail/send.go @@ -35,7 +35,7 @@ func (a *App) Compose() { //types:add b := core.NewBody().AddTitle("Send message") core.NewForm(b).SetStruct(a.ComposeMessage) ed := texteditor.NewEditor(b) - ed.Buffer.SetLang("md") + ed.Buffer.SetLanguage("md") ed.Buffer.Options.LineNumbers = false ed.Styler(func(s *styles.Style) { s.SetMono(false) diff --git a/terminal/app.go b/terminal/app.go index de2ca824..7618ef93 100644 --- a/terminal/app.go +++ b/terminal/app.go @@ -78,7 +78,7 @@ func (a *App) Init() { w.SetText(a.Dir) }) tree.AddChild(w, func(w *texteditor.Editor) { - w.Buffer.SetLang("go") + w.Buffer.SetLanguage("go") w.Buffer.Options.LineNumbers = false w.OnKeyChord(func(e events.Event) {