Browse Source

fix(tui): mouse wheel escape codes leaking into input

Adam 8 months ago
parent
commit
37e0a7050f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/tui/internal/tui/tui.go

+ 1 - 0
packages/tui/internal/tui/tui.go

@@ -189,6 +189,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 		updated, cmd := a.messages.Update(msg)
 		updated, cmd := a.messages.Update(msg)
 		a.messages = updated.(chat.MessagesComponent)
 		a.messages = updated.(chat.MessagesComponent)
 		cmds = append(cmds, cmd)
 		cmds = append(cmds, cmd)
+  return a, tea.Batch(cmds...)
 	case tea.BackgroundColorMsg:
 	case tea.BackgroundColorMsg:
 		styles.Terminal = &styles.TerminalInfo{
 		styles.Terminal = &styles.TerminalInfo{
 			BackgroundIsDark: msg.IsDark(),
 			BackgroundIsDark: msg.IsDark(),