summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGal Schlezinger <[email protected]>2025-06-14 22:53:43 +0300
committerGitHub <[email protected]>2025-06-14 14:53:43 -0500
commitfe109c921eac9dbcf6459c1e1be66e66f2d0dc11 (patch)
tree8ee40839e6445cab77b23b3adf66384fc590cdd5
parent37bb8895fefdf87af4ddbb4b754a690548ba8ff5 (diff)
downloadopencode-fe109c921eac9dbcf6459c1e1be66e66f2d0dc11.tar.gz
opencode-fe109c921eac9dbcf6459c1e1be66e66f2d0dc11.zip
add focus tracking for tui so cursor will hide when not in focus (#103)
-rw-r--r--packages/tui/internal/components/chat/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go
index 95ca3e14b..293f18f05 100644
--- a/packages/tui/internal/components/chat/editor.go
+++ b/packages/tui/internal/components/chat/editor.go
@@ -93,7 +93,7 @@ const (
)
func (m *editorComponent) Init() tea.Cmd {
- return tea.Batch(textarea.Blink, m.spinner.Tick)
+ return tea.Batch(textarea.Blink, m.spinner.Tick, tea.EnableReportFocus)
}
func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {