Skip to content

Commit

Permalink
interp: Make completion work again
Browse files Browse the repository at this point in the history
Should really add test for this
  • Loading branch information
wader committed Mar 10, 2023
1 parent 52bdb5e commit 5415bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (o *stdOS) Readline(opts interp.ReadlineOpts) (string, error) {
HistorySearchFold: true,
}
cfg.AutoComplete = autoCompleterFn(func(line []rune, pos int) (newLine [][]rune, length int) {
if o.completerFn != nil {
if o.completerFn == nil {
return nil, 0
}

Expand Down

0 comments on commit 5415bfc

Please sign in to comment.