Skip to content

Commit

Permalink
rename to MetaDeleteKey for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Apr 17, 2023
1 parent 23d74df commit a64acbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (o *operation) readline(deadline chan struct{}) ([]rune, error) {
} else {
o.t.Bell()
}
case CharDelete:
case MetaDeleteKey:
if o.buf.Len() > 0 || !o.IsNormalMode() {
if !o.buf.Delete() {
o.t.Bell()
Expand Down
2 changes: 1 addition & 1 deletion terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (t *terminal) consumeANSIEscape(buf *bufio.Reader) (result readResult, err
r = CharLineEnd
case '~':
if initial == '[' && data == "3" {
r = CharDelete // ???
r = MetaDeleteKey // "Delete" key
}
case 'Z':
if initial == '[' {
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const (
MetaBackspace
MetaTranspose
MetaShiftTab
CharDelete
MetaDeleteKey
)

type rawModeHandler struct {
Expand Down

0 comments on commit a64acbe

Please sign in to comment.