about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-03-27 19:04:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-03-27 19:04:35 +0000
commit815cc9fc0d8b6af3674eb9ea7971c1a5ce79b77e (patch)
tree0b9c4ecd66aae8bc3b958522ced9388a4d9d69ee /Doc
parent691be6d0fcf43bf21a9c4c3122380fb4f92db055 (diff)
downloadzsh-815cc9fc0d8b6af3674eb9ea7971c1a5ce79b77e.tar.gz
zsh-815cc9fc0d8b6af3674eb9ea7971c1a5ce79b77e.tar.xz
zsh-815cc9fc0d8b6af3674eb9ea7971c1a5ce79b77e.zip
rationalise widths of non-printing characters to zero.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 52d4cac9e..f04d6ea17 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1004,6 +1004,14 @@ calculating the how much of the string it occupies or the overall
 length of the string.  Most printable characters have a width of one
 unit, however certain Asian character sets and certain special effects
 use wider characters; combining characters have zero width.
+Non-printable characters are arbitrarily counted as zero width; how they
+would actually be displayed will vary.
+
+If the tt(m) is repeated, the character either counts zero (if it has
+zero width), else one.  For printable character strings this has the
+effect of counting the number of glyphs (visibly separate characters),
+except for the case where combining characters themselves have non-zero
+width (true in certain alphabets).
 )
 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)