summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-05-15 13:26:56 -0700
committerBart Schaefer <schaefer@ipost.com>2021-05-15 13:26:56 -0700
commit3fe6bd56ed792920cac4385275b0482a63c47a0c (patch)
tree1e886fa10cc796bb2bfda2fa05cb00d1803157d4
parent231c049c022963f65f869b9c12e763473207b42a (diff)
downloadzsh-3fe6bd56ed792920cac4385275b0482a63c47a0c.tar.gz
zsh-3fe6bd56ed792920cac4385275b0482a63c47a0c.zip
48709: suppress error messages from comptry
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Base/Widget/_complete_help2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 63341d2bf..52fd4be27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2021-05-15 Bart Schaefer <schaefer@zsh.org>
+ * 48709: Completion/Base/Widget/_complete_help: suppress error
+ messages from comptry
+
* 48707: Doc/Zsh/contrib.yo, Functions/Zle/zed-set-file-name:
fix keymap handling when zed invokes read-from-minibuffer
diff --git a/Completion/Base/Widget/_complete_help b/Completion/Base/Widget/_complete_help
index 252b0e281..69855de9d 100644
--- a/Completion/Base/Widget/_complete_help
+++ b/Completion/Base/Widget/_complete_help
@@ -84,7 +84,7 @@ _help_sort_tags() {
[[ "$help_funcs[$curcontext]" != *${f}* ]] &&
help_funcs[$curcontext]+=$'\0'"${f}"
help_tags[${curcontext}${f}]+=",${argv}:${f}"
- comptry "$@"
+ comptry "$@" 2>/dev/null
fi
}