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_debug3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Widget/_complete_debug b/Completion/Base/Widget/_complete_debug
index 50fc8090a..ba3d2b417 100644
--- a/Completion/Base/Widget/_complete_debug
+++ b/Completion/Base/Widget/_complete_debug
@@ -9,7 +9,8 @@ local pager w="${(qq)words}"
integer debug_fd=-1
{
if [[ -t 2 ]]; then
- mv -f =(<<<'') $tmp &&
+ zmodload -m -F zsh/files b:zf_ln 2>/dev/null &&
+ zf_ln -fn =(<<<'') $tmp &&
exec {debug_fd}>&2 2>| $tmp
fi