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
@@ -1020,7 +1020,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
newRow, newCol := m.cursorLineNumber(), m.col
m.Cursor, cmd = m.Cursor.Update(msg)
if newRow != oldRow || newCol != oldCol {
if (newRow != oldRow || newCol != oldCol) && m.Cursor.Mode() == cursor.CursorBlink {
m.Cursor.Blink = false
cmd = m.Cursor.BlinkCmd()
}