Merge branch 'v2-exp' into v2-table

This commit is contained in:
Andrey Nering 2025-06-03 11:50:37 -03:00
commit 27ee87e0bf

View file

@ -61,7 +61,7 @@ func (s *cursedRenderer) flush() error {
// Render and queue changes to the screen buffer.
s.scr.Render()
if s.lastCur != nil {
if s.lastCur != nil { //nolint:nestif
if s.lastCur.Shape != s.cursor.Shape || s.lastCur.Blink != s.cursor.Blink {
cursorStyle := encodeCursorStyle(s.lastCur.Shape, s.lastCur.Blink)
_, _ = io.WriteString(s.w, ansi.SetCursorStyle(cursorStyle))