Skip to content

Commit

Permalink
remove fast path in Write()
Browse files Browse the repository at this point in the history
Fixes racey redraw of the prompt:

chzyer#220
  • Loading branch information
slingamn committed Feb 13, 2023
1 parent 9a3031a commit 7bb0e05
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ type wrapWriter struct {
}

func (w *wrapWriter) Write(b []byte) (int, error) {
if !w.t.IsReading() {
return w.target.Write(b)
}

var (
n int
err error
Expand Down

0 comments on commit 7bb0e05

Please sign in to comment.