From bb8a6310eab0e68e8082c30f6e2342e779df9b4d Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Fri, 20 Feb 2026 20:54:18 +0900 Subject: [PATCH] very minor tidying --- layout.go | 3 +++ source.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/layout.go b/layout.go index 94ee552..d5501b2 100644 --- a/layout.go +++ b/layout.go @@ -940,6 +940,9 @@ func (l *BasicLayout) DrawScreen(state *Peco, options *hub.DrawOptions) { } if err := l.screen.Flush(); err != nil { + if pdebug.Enabled { + pdebug.Printf("screen.Flush error: %s", err) + } return } } diff --git a/source.go b/source.go index 6432779..43c87ce 100644 --- a/source.go +++ b/source.go @@ -132,7 +132,7 @@ func (s *Source) Setup(ctx context.Context, state *Peco) { } if closer, ok := s.in.(io.Closer); ok { s.inClosed = true - _ = closer.Close() + closer.Close() // best-effort cleanup; error is not actionable } }()