Skip to content

Commit

Permalink
complete: suppress known error messages of "bash-completion"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 8, 2021
1 parent 00e74d8 commit d117973
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/core-complete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2523,10 +2523,11 @@ function ble/complete/progcomp/.compgen {
if [[ $comp_func ]]; then
# fzf
[[ $comp_func == _fzf_* ]] &&
ble-import contrib/fzf-completion
ble-import -f contrib/fzf-completion

# bash_completion
if ble/is-function _quote_readline_by_ref; then
# https://github.com/scop/bash-completion/pull/492 (fixed in bash-completion 2.12)
function _quote_readline_by_ref {
if [[ $1 == \'* ]]; then
printf -v "$2" %s "${1:1}"
Expand All @@ -2535,7 +2536,13 @@ function ble/complete/progcomp/.compgen {
[[ ${!2} == \$* ]] && builtin eval "$2=${!2}"
fi
}
ble/function#suppress-stderr _filedir
ble/function#suppress-stderr _filedir 2>/dev/null

# https://github.com/scop/bash-completion/issues/509 (fixed in bash-completion 2.11)
ble/function#suppress-stderr _find 2>/dev/null

# https://github.com/scop/bash-completion/pull/556 (fixed in bash-completion 2.11)
ble/function#suppress-stderr _scp_remote_files 2>/dev/null
fi
fi
if [[ $comp_prog ]]; then
Expand Down
1 change: 1 addition & 0 deletions memo/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
- util (`modifyOtherKeys`): work around a quirk of Kitty (reported by NoahGorny) `#D1549` f599525
- global: work around empty `vi_imap` cache by `tmux-resurrect` `#D1562` 560160b
- decode: identify `kitty` and treat `\e[27u` as isolated ESC (reported by lyiriyah) `#D1585` c2a84a2
- complete: suppress known error messages of `bash-completion` (reported by oc1024, Lun4m) `#D1622` 0000000

## Internal changes and fixes

Expand Down
12 changes: 12 additions & 0 deletions note.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4666,6 +4666,18 @@ bash_tips
Done (実装ログ)
-------------------------------------------------------------------------------

2021-07-04

* bash-completion (_find): error message (reported by oc1024) [#D1622]
https://github.com/akinomyoga/ble.sh/issues/121
https://github.com/scop/bash-completion/issues/509
https://github.com/scop/bash-completion/commit/f1ddf810e4ee6693acb9fab1be1794586aa111a0

これはどうしようもない。bash-completion が悪い。

* ble-0.3: bashrc で bind '"\e[D": backward-char' を実行した時にエラーメッセージ [#D1621]
https://github.com/akinomyoga/ble.sh/issues/122#issuecomment-872690396

2021-06-19

* term: どうも GNOME terminal が terminal identification を変更した様だ [#D1620]
Expand Down

0 comments on commit d117973

Please sign in to comment.