From bb3628e898331edcd82da5d6291ef7c8812be267 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 15 Sep 2006 13:17:27 +0000 Subject: assume width 1 for control characters; don't crash if width of repeated padding string is 0 --- Doc/Zsh/expn.yo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index f7343b7d1..34d61ed4d 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -871,7 +871,9 @@ var(string1) is used to produce any remaining padding. If the tt(MULTIBYTE) option is in effect, screen character widths will be used for the calculation of padding; otherwise individual bytes are -treat as occupying one unit of width. +treat as occupying one unit of width. Control characters are always +assumed to be one unit wide; this allows the mechanism to be used +for generating repetitions of control characters. ) item(tt(r:)var(expr)tt(::)var(string1)tt(::)var(string2)tt(:))( As tt(l), but pad the words on the right and insert var(string2) -- cgit 1.4.1