Skip to content

Commit 7db59b0

Browse files
committed
fix(ui): fix the imputs cursor not flashing automatically
fix the imputs cursor not flashing automatically Signed-off-by: mritd <[email protected]>
1 parent a272099 commit 7db59b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui_commit.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package main
33
import (
44
"strings"
55

6+
"github.com/charmbracelet/bubbles/textinput"
7+
68
"github.com/charmbracelet/bubbles/spinner"
79

810
tea "github.com/charmbracelet/bubbletea"
@@ -60,7 +62,7 @@ func (m *commitModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
6062
// some special views need to determine the state of the data to update
6163
switch m.viewIndex {
6264
case INPUTS:
63-
return m, tea.Batch(spinner.Tick, m.inputs)
65+
return m, tea.Batch(textinput.Blink, spinner.Tick, m.inputs)
6466
case COMMIT:
6567
return m, tea.Batch(spinner.Tick, m.commit)
6668
case ERROR:

0 commit comments

Comments
 (0)