Skip to content

Commit

Permalink
Merge pull request #61 from sohomdatta1/filter-runes
Browse files Browse the repository at this point in the history
Unbreak rune filtering functionality
  • Loading branch information
slingamn authored May 15, 2024
2 parents 23dce32 + d94a9a8 commit 087affd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (o *operation) readline(deadline chan struct{}) ([]rune, error) {
keepInCompleteMode := false
r, err := o.t.GetRune(deadline)

if cfg := o.GetConfig(); cfg.FuncFilterInputRune != nil && err != nil {
if cfg := o.GetConfig(); cfg.FuncFilterInputRune != nil && err == nil {
var process bool
r, process = cfg.FuncFilterInputRune(r)
if !process {
Expand Down

0 comments on commit 087affd

Please sign in to comment.