about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xTest/ztst.zsh1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bb25b7baa..b5f12ac62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-20  Bart Schaefer  <schaefer@zsh.org>
+
+	* unposted: Test/ztst.zsh: Handle line wrapping in ZTST_hashmark.
+
 2001-05-20  Andrej Borsenkow <bor@zsh.org>
 
 	* 14401: Makefile.in, configure.in, Config/config.mk,
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."