Skip to content

Commit fe109c9

Browse files
authored
add focus tracking for tui so cursor will hide when not in focus (anomalyco#103)
1 parent 37bb889 commit fe109c9

File tree

1 file changed

+1
-1
lines changed
  • packages/tui/internal/components/chat

1 file changed

+1
-1
lines changed

packages/tui/internal/components/chat/editor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const (
9393
)
9494

9595
func (m *editorComponent) Init() tea.Cmd {
96-
return tea.Batch(textarea.Blink, m.spinner.Tick)
96+
return tea.Batch(textarea.Blink, m.spinner.Tick, tea.EnableReportFocus)
9797
}
9898

9999
func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

0 commit comments

Comments
 (0)