Skip to content

Commit

Permalink
fix searchmode disappear in wrapWriter.Write
Browse files Browse the repository at this point in the history
  • Loading branch information
chzyer committed Sep 23, 2015
1 parent 2544766 commit 0de649a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ func (w *wrapWriter) Write(b []byte) (int, error) {
buf.Clean()
n, err := w.target.Write(b)
w.r.buf.Refresh()
if w.r.IsSearchMode() {
w.r.SearchRefresh(-1)
}
return n, err
}

Expand Down

0 comments on commit 0de649a

Please sign in to comment.