Skip to content

Commit

Permalink
update to more texteditor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 14, 2024
1 parent a6ce441 commit 96e3b31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mail/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion terminal/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96e3b31

Please sign in to comment.