mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
edit: Fix an error not being returned
This commit is contained in:
parent
d0694198f6
commit
bb9f6e2850
|
@ -74,7 +74,7 @@ func (rd *reader) readKey() (k Key, err error) {
|
|||
if e == async.Timeout {
|
||||
return Key{'[', Alt}, nil
|
||||
} else if e != nil {
|
||||
return ZeroKey, nil
|
||||
return ZeroKey, e
|
||||
}
|
||||
// After first rune read we turn off the timeout
|
||||
rd.timed.Timeout = -1
|
||||
|
|
Loading…
Reference in New Issue
Block a user