1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

Handle line wrapping in ZTST_hashmark.

This commit is contained in:
Bart Schaefer 2001-05-20 18:10:56 +00:00
parent 7270c28a39
commit ad74b5519c
2 changed files with 5 additions and 0 deletions

View file

@ -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."