Skip to content
Snippets Groups Projects
Commit 1a3a71fe authored by gwenn's avatar gwenn
Browse files

Fix RawReader impl for windows

parent a84ee62e
No related branches found
No related tags found
No related merge requests found
......@@ -994,9 +994,9 @@ impl<R: Read> RawReader<R> {
// TODO How to support surrogate pair ?
self.buf = Some(utf16);
match decode_utf16(self).next() {
Some(item) => Ok(KeyPress::Char(try!(item))),
Some(item) => return Ok(KeyPress::Char(try!(item))),
None => return Err(error::ReadlineError::Eof),
}
};
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment