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) {