diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 21:34:38 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 21:34:38 +0300 |
| commit | 51667451ec2a36b2feebe0e68f3c10c8ca20d611 (patch) | |
| tree | 41ee9d83c8935d3a07efd04b23058a0ffb2b97e4 | |
| parent | fe915c0c6eb7612bf645f55a99ac218df0e73ae8 (diff) | |
Fix fireworks not appearing after quitting
| -rw-r--r-- | internal/ui/fireworks.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/ui/fireworks.go b/internal/ui/fireworks.go index 8442541..b95920b 100644 --- a/internal/ui/fireworks.go +++ b/internal/ui/fireworks.go @@ -29,6 +29,9 @@ func tick() tea.Cmd { func (m fwModel) Init() tea.Cmd { m.start = time.Now() + // Ignore the first key in case the exit key from the previous program + // is still buffered when the fireworks start. + m.ignoreFirstKey = true return tick() } |
