mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
add focus tracking for tui so cursor will hide when not in focus (#103)
This commit is contained in:
@@ -93,7 +93,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (m *editorComponent) Init() tea.Cmd {
|
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) {
|
func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user