From 74118858e1a9f60287a563956081b6801d914b8e Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 14 May 2024 16:13:35 -0400 Subject: [PATCH] fix(cursor): revert ctx change --- cursor/cursor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cursor/cursor.go b/cursor/cursor.go index 84a84bd..b4ef684 100644 --- a/cursor/cursor.go +++ b/cursor/cursor.go @@ -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++