Compare commits

..

2 Commits

Author SHA1 Message Date
TorchedSammy b8e0874ab0
fix: catch and ignore sigquit signal (closes #112) 2022-03-14 20:55:00 -04:00
TorchedSammy ae449b89eb
fix(readline): dont show completions menu if there is only 1 entry (closes #107) 2022-03-14 20:17:45 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ func (rl *Instance) getNormalCompletion() {
// escape the completion mode from here directly.
var items bool
for _, group := range rl.tcGroups {
if len(group.Suggestions) > 0 {
if len(group.Suggestions) > 1 {
items = true
}
}

View File

@ -10,7 +10,7 @@ import (
func handleSignals() {
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt, syscall.SIGWINCH, syscall.SIGUSR1, syscall.SIGUSR2)
signal.Notify(c, os.Interrupt, syscall.SIGWINCH, syscall.SIGUSR1, syscall.SIGUSR2, syscall.SIGQUIT)
for s := range c {
switch s {