mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Merge pull request #669 from peco/fix-unguarded-pdebug
fix unguarded debug prints
This commit is contained in:
commit
32f69ee127
|
|
@ -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)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue