about summary refs log tree commit diff
path: root/Functions/Zftp/zfautocheck
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-02 16:44:59 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-02 16:44:59 +0000
commit6e1759433b3d8e861e6146fcf9bd7a70735ec675 (patch)
tree8e736c83a6a4b0a314af123aa8660f8cdeefe3d0 /Functions/Zftp/zfautocheck
parent8b3e5404ce0fad4ebe457eb521b0b487221faf6a (diff)
downloadzsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.gz
zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.xz
zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.zip
zsh-workers/7632
Diffstat (limited to 'Functions/Zftp/zfautocheck')
-rw-r--r--Functions/Zftp/zfautocheck4
1 files changed, 4 insertions, 0 deletions
diff --git a/Functions/Zftp/zfautocheck b/Functions/Zftp/zfautocheck
index abb994061..d06beca4f 100644
--- a/Functions/Zftp/zfautocheck
+++ b/Functions/Zftp/zfautocheck
@@ -15,6 +15,10 @@
 # a successful open.
 local lastsession=$zflastsession
 
+# Unset the delay counter from the progress meter in case there was an
+# abnormal exit.
+(( ${+zftpseconds} )) && unset zftpseconds
+
 if [[ -z $ZFTP_HOST ]]; then
   zfopen || return 1
   [[ $1 = *d* ]] || do_close=1