forked from mirror/readline
fix searchmode disappear in wrapWriter.Write
This commit is contained in:
parent
25447666a0
commit
0de649aeb5
|
@ -24,6 +24,9 @@ func (w *wrapWriter) Write(b []byte) (int, error) {
|
||||||
buf.Clean()
|
buf.Clean()
|
||||||
n, err := w.target.Write(b)
|
n, err := w.target.Write(b)
|
||||||
w.r.buf.Refresh()
|
w.r.buf.Refresh()
|
||||||
|
if w.r.IsSearchMode() {
|
||||||
|
w.r.SearchRefresh(-1)
|
||||||
|
}
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue