Fix key repeat escape code truncation issue
This commit is contained in:
parent
11a058c8df
commit
13eb9fd7b4
@ -183,7 +183,8 @@ impl Editor {
|
||||
// Match escape sequence
|
||||
// --------------------------------------------------------------------
|
||||
let mut seq = [0; 4];
|
||||
match br.read_exact(&mut seq) {
|
||||
let mut seq_handle = br.take(4);
|
||||
match seq_handle.read(&mut seq) {
|
||||
Ok(_) => (),
|
||||
Err(e) => {
|
||||
if e.kind() != io::ErrorKind::UnexpectedEof {
|
||||
|
Loading…
Reference in New Issue
Block a user