Skip to content

Commit

Permalink
complete: fix empty completions with "FIGNORE"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 17, 2021
1 parent acc9661 commit 144ea5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ChangeLog.md
Expand Up @@ -202,6 +202,8 @@
- util (`ble/util/readfile`): fix a bug of always exiting with 1 in `bash <= 3.2` (reported by laoshaw) `#D1678` 61705bf
- trace: fix wrong positioning of the ellipses on overflow `#D1684` b90ac78
- complete: do not generate keywords for quoted command names `#D1691` 60d244f
- complete: fix empty completions with `FIGNORE` (reported by seanfarley) `#D1711` 0000000


## Documentation

Expand Down
1 change: 1 addition & 0 deletions lib/core-complete.sh
Expand Up @@ -4660,6 +4660,7 @@ function ble/complete/.fignore/filter {
for pat in "${_fignore[@]}"; do
[[ $1 == *"$pat" ]] && return 1
done
return 0
}

## @fn ble/complete/candidates/.pick-nearest-sources
Expand Down
8 changes: 8 additions & 0 deletions note.txt
Expand Up @@ -5666,6 +5666,14 @@ bash_tips
Done (実装ログ)
-------------------------------------------------------------------------------

2021-12-18

* complete: FIGNORE で全てが棄却されるバグ (reported by seanfarley) [#D1711]
https://github.com/akinomyoga/ble.sh/issues/162

これは極めて単純なバグだった。そもそも実は FIGNORE は今まで全く動いていなかっ
たと思われる。

2021-12-16

* menu-complete で 30s かかるという話 (1/2) construct-page のバグ (reported by banoris) [#D1710]
Expand Down

0 comments on commit 144ea5d

Please sign in to comment.