mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix(cursor): revert ctx change
This commit is contained in:
+2
-2
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user