about summary refs log tree commit diff
path: root/Doc/Zsh/prompt.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-02-17 18:15:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-02-17 18:15:04 +0000
commit65520f1901cee7bcad2871d47f62df2bbeac0126 (patch)
tree2bd0452a50c5168bbd1e5ae5a539cacff79d0a30 /Doc/Zsh/prompt.yo
parent7da98c51246f245cde16cddb9b418afcfb3b3574 (diff)
downloadzsh-65520f1901cee7bcad2871d47f62df2bbeac0126.tar.gz
zsh-65520f1901cee7bcad2871d47f62df2bbeac0126.tar.xz
zsh-65520f1901cee7bcad2871d47f62df2bbeac0126.zip
24566: fix prompts with glitch spaces a bit more
Diffstat (limited to 'Doc/Zsh/prompt.yo')
-rw-r--r--Doc/Zsh/prompt.yo10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo
index 66e2b9015..29761140e 100644
--- a/Doc/Zsh/prompt.yo
+++ b/Doc/Zsh/prompt.yo
@@ -187,6 +187,9 @@ item(tt(%{)...tt(%}))(
 Include a string as a literal escape sequence.
 The string within the braces should not change the cursor
 position.  Brace pairs can nest.
+
+A positive numeric argument between the tt(%) and the %%({) is treated as
+described for tt(%G) below.
 )
 item(tt(%G))(
 Within a tt(%{)...tt(%}) sequence, include a `glitch': that is, assume
@@ -199,6 +202,13 @@ indicate the correct width.  An integer between the `tt(%)' and `tt(G)'
 indicates a character width other than one.  Hence tt(%{)var(seq)tt(%2G%})
 outputs var(seq) and assumes it takes up the width of two standard
 characters.
+
+Multiple uses of tt(%G) accumulate in the obvious fashion; the position
+of the tt(%G) is unimportant.  Negative integers are not handled.
+
+Note that when prompt truncation is in use it is advisable to divide up
+output into single characters within each tt(%{)...tt(%}) group so that
+the correct truncation point can be found.
 )
 enditem()