fix searchmode disappear in wrapWriter.Write

This commit is contained in:
Cheney 2015-09-23 14:04:30 +08:00
parent 25447666a0
commit 0de649aeb5
1 changed files with 3 additions and 0 deletions

View File

@ -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
}