mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
edit: Fix Alt-[ parsing
This commit is contained in:
parent
f21de6531f
commit
d0694198f6
|
@ -72,7 +72,7 @@ func (rd *reader) readKey() (k Key, err error) {
|
|||
r, _, e = rd.buffed.ReadRune()
|
||||
// Timeout can only happen at first ReadRune.
|
||||
if e == async.Timeout {
|
||||
return Key{'[', Ctrl}, nil
|
||||
return Key{'[', Alt}, nil
|
||||
} else if e != nil {
|
||||
return ZeroKey, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user