about summary refs log tree commit diff
path: root/Functions/Zftp/zfgoto
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zftp/zfgoto')
-rw-r--r--Functions/Zftp/zfgoto1
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/Zftp/zfgoto b/Functions/Zftp/zfgoto
index 57651e383..7128cafe2 100644
--- a/Functions/Zftp/zfgoto
+++ b/Functions/Zftp/zfgoto
@@ -8,6 +8,7 @@
 
 emulate -L zsh
 setopt extendedglob
+[[ $curcontext = :zf*: ]] || local curcontext=:zfgoto:
 
 # Set ZFTP_BMFILE if not already set.  This should agree with
 # the corresponding line in zfmark.