fix searchmode disappear in wrapWriter.Write
fix searchmode disappear in wrapWriter.Write

traetox/readline,koolhazz/readline,josephyzhou/readline,vseledkin/readline,shaunstanislaus/readline,chzyer/readline