Make alt+backspace delete word (#1223)

This commit is contained in:
Kevin Cao 2023-11-21 15:26:47 -05:00 committed by GitHub
parent ecf8b793f0
commit 3cd07728f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,6 +145,8 @@ func (i *Instance) Readline() (string, error) {
buf.MoveLeftWord()
case 'f':
buf.MoveRightWord()
case CharBackspace:
buf.DeleteWord()
case CharEscapeEx:
escex = true
}