diff --git a/operation.go b/operation.go index 2c93561..497e6c6 100644 --- a/operation.go +++ b/operation.go @@ -43,10 +43,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 @@ -478,9 +474,7 @@ func (o *Operation) SaveHistory(content string) error { } func (o *Operation) Refresh() { - if o.t.IsReading() { - o.buf.Refresh(nil) - } + o.buf.Refresh(nil) } func (o *Operation) Clean() {