mirror of
https://github.com/junegunn/fzf
synced 2026-08-10 20:01:42 +00:00
Terminate resize notification when Loop exits
- Pass Loop context to notifyOnResize - Windows: stop polling goroutine, close CONOUT$ handle on ctx.Done - Unix: unregister SIGWINCH handler on ctx.Done
This commit is contained in:
+1
-1
@@ -6199,7 +6199,7 @@ func (t *Terminal) Loop() error {
|
||||
|
||||
if !t.tui.ShouldEmitResizeEvent() {
|
||||
resizeChan := make(chan os.Signal, 1)
|
||||
notifyOnResize(resizeChan) // Non-portable
|
||||
notifyOnResize(ctx, resizeChan) // Non-portable
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user