Reset blink only when CursorBlink (#378)

This commit is contained in:
remiposo
2023-05-13 12:56:18 -04:00
committed by GitHub
parent 39f4eeae2c
commit 9266653c39
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
m.Cursor, cmd = m.Cursor.Update(msg)
cmds = append(cmds, cmd)
if oldPos != m.pos {
if oldPos != m.pos && m.Cursor.Mode() == cursor.CursorBlink {
m.Cursor.Blink = false
cmds = append(cmds, m.Cursor.BlinkCmd())
}