summaryrefslogtreecommitdiff
path: root/Completion/Base/Widget/_complete_debug
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/Widget/_complete_debug')
-rw-r--r--Completion/Base/Widget/_complete_debug2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Base/Widget/_complete_debug b/Completion/Base/Widget/_complete_debug
index 604486376..85a0f372a 100644
--- a/Completion/Base/Widget/_complete_debug
+++ b/Completion/Base/Widget/_complete_debug
@@ -9,6 +9,8 @@ local pager w="${(qq)words}"
integer debug_fd=-1
{
if [[ -t 2 ]]; then
+ zmodload -F zsh/files b:zf_ln 2>/dev/null &&
+ zf_ln -fn =(<<<'') $tmp &&
exec {debug_fd}>&2 2>| $tmp
fi