about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-05-20 18:10:56 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-05-20 18:10:56 +0000
commitad74b5519c0c9c0c376ae3bfa2a85ad8f7862989 (patch)
tree07d638ecae9d5b67f1313eb1a9e95c719acf91e9 /Test
parent7270c28a3992a1a386bc491f0f026080bb88387e (diff)
downloadzsh-ad74b5519c0c9c0c376ae3bfa2a85ad8f7862989.tar.gz
zsh-ad74b5519c0c9c0c376ae3bfa2a85ad8f7862989.tar.xz
zsh-ad74b5519c0c9c0c376ae3bfa2a85ad8f7862989.zip
Handle line wrapping in ZTST_hashmark.
Diffstat (limited to 'Test')
-rwxr-xr-xTest/ztst.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 4fa7a15a2..b881e9501 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -111,6 +111,7 @@ ZTST_verbose() {
 }
 ZTST_hashmark() {
   [[ ZTST_verbose -le 0 && -t 8 ]] && print -nu8 ${(pl:SECONDS::\#::\#\r:)}
+  (( SECONDS > COLUMNS+1 && (SECONDS -= COLUMNS) ))
 }
 
 [[ ! -r $ZTST_testname ]] && ZTST_testfailed "can't read test file."