about summary refs log tree commit diff
path: root/Functions/Zftp/zfdir
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zftp/zfdir')
-rw-r--r--Functions/Zftp/zfdir1
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/Zftp/zfdir b/Functions/Zftp/zfdir
index deb5b9762..b8930b176 100644
--- a/Functions/Zftp/zfdir
+++ b/Functions/Zftp/zfdir
@@ -22,6 +22,7 @@
 emulate -L zsh
 setopt extendedglob
 
+[[ $curcontext = :zf*: ]] || local curcontext=:zfdir:
 local file opt optlist redir i newargs force
 local curdir=$zfconfig[curdir_$ZFTP_SESSION]
 local otherdir=$zfconfig[otherdir_$ZFTP_SESSION]