Comparar commits

..

2 Commits

Autor SHA1 Mensaje Fecha
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
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

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

Ver fichero

@ -10,7 +10,7 @@ import (
func handleSignals() { func handleSignals() {
c := make(chan os.Signal) 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 { for s := range c {
switch s { switch s {