Make alt+backspace delete word (#1223)
This commit is contained in:
parent
ecf8b793f0
commit
3cd07728f4
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,8 @@ func (i *Instance) Readline() (string, error) {
|
||||||
buf.MoveLeftWord()
|
buf.MoveLeftWord()
|
||||||
case 'f':
|
case 'f':
|
||||||
buf.MoveRightWord()
|
buf.MoveRightWord()
|
||||||
|
case CharBackspace:
|
||||||
|
buf.DeleteWord()
|
||||||
case CharEscapeEx:
|
case CharEscapeEx:
|
||||||
escex = true
|
escex = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue