Skip to content

Commit

Permalink
Merge pull request #40 from reeflective/inputrc
Browse files Browse the repository at this point in the history
Fixes to abort commands
  • Loading branch information
maxlandon authored May 29, 2023
2 parents 57a6355 + c81c50c commit 269684f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emacs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ func (rl *Shell) abort() {
// And only return to the caller if the abort was
// called by one of the builtin/config terminators.
// All others should generally be OS signals.
if rl.Keymap.InputIsTerminator() {
if !rl.Keymap.InputIsTerminator() {
return
}

Expand Down
2 changes: 1 addition & 1 deletion internal/keymap/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (m *Engine) PrintBinds(inputrcFormat bool) {
func (m *Engine) InputIsTerminator() bool {
terminators := []string{
inputrc.Unescape(`\C-G`),
inputrc.Unescape(`C-]`),
inputrc.Unescape(`\C-]`),
}

binds := make(map[string]inputrc.Bind)
Expand Down

0 comments on commit 269684f

Please sign in to comment.