readline
readline copied to clipboard
Fixed a small bug that prevented the terminal from playing Bell sound when a command's autocompletion was not found
Normally in bash, when you type an 'xyz' command and it isn't recognized, pressing the TAB key causes a bell to sound. The logic for this is handled within the library, but on line 90 of the file: complete.go:
complete.go
...
newLines, offset := o.op.cfg.AutoComplete.Do(rs, buf.idx)
if len(newLines) == 0 {
o.ExitCompleteMode(false)
return true
}
...
it returns "true" despite no autocompletion options being found. This pull fixes this error.