Merge pull request #669 from peco/fix-unguarded-pdebug

fix unguarded debug prints
This commit is contained in:
lestrrat 2026-02-17 19:30:29 +09:00 committed by GitHub
commit 32f69ee127
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,8 +156,10 @@ func (h *Hub) SendDrawPrompt(ctx context.Context) {
// SendDraw sends a request to redraw the terminal display
func (h *Hub) SendDraw(ctx context.Context, options *DrawOptions) {
pdebug.Printf("START Hub.SendDraw %v", options)
defer pdebug.Printf("END Hub.SendDraw %v", options)
if pdebug.Enabled {
pdebug.Printf("START Hub.SendDraw %v", options)
defer pdebug.Printf("END Hub.SendDraw %v", options)
}
send(ctx, h.DrawCh(), NewPayload(options, isBatchCtx(ctx)))
}