fix(cursor): revert ctx change

This commit is contained in:
Ayman Bagabas
2024-05-14 16:13:35 -04:00
parent 4491293fd1
commit 74118858e1
+2 -2
View File
@@ -87,7 +87,7 @@ func New(ctx tea.Context) Model {
mode: CursorBlink,
blinkCtx: &blinkCtx{
ctx: ctx,
ctx: context.Background(),
},
}
}
@@ -164,7 +164,7 @@ func (m *Model) BlinkCmd() tea.Cmd {
m.blinkCtx.cancel()
}
ctx, cancel := context.WithTimeout(context.Background(), m.BlinkSpeed)
ctx, cancel := context.WithTimeout(m.blinkCtx.ctx, m.BlinkSpeed)
m.blinkCtx.cancel = cancel
m.blinkTag++