zsh-workers
 help / color / mirror / code / Atom feed
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: [PATCH] prompt.yo: minor format fix
Date: Fri, 3 Apr 2015 09:34:18 +0900	[thread overview]
Message-ID: <99B3180D-2602-49B5-AF70-140FF31F9C40@kba.biglobe.ne.jp> (raw)

All are just simple format fixes.
(I will also correct the wrong date in ChangeLog)

diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo
index 08dcded..3075876 100644
--- a/Doc/Zsh/prompt.yo
+++ b/Doc/Zsh/prompt.yo
@@ -274,7 +274,7 @@ The value of the first element of the tt(psvar) array parameter.  Following
 the `tt(%)' with an integer gives that element of the array.  Negative
 integers count from the end of the array.
 )
-item(tt(%LPAR())var(x.true-text.false-text)tt(RPAR()))(
+item(tt(%LPAR())var(x)tt(.)var(true-text)tt(.)var(false-text)tt(RPAR()))(
 Specifies a ternary expression.  The character following the var(x) is
 arbitrary; the same character is used to separate the text for the
 `true' result from that for the `false' result.
@@ -364,7 +364,7 @@ level (i.e. truncations inside a `tt(%LPAR())' are separate), which
 ever comes first.  In particular, a truncation with argument zero
 (e.g., `tt(%<<)') marks the end of the range of the string to be
 truncated while turning off truncation from there on. For example, the
-prompt '%10<...<%~%<<%# ' will print a truncated representation of the
+prompt `tt(%10<...<%~%<<%# )' will print a truncated representation of the
 current directory, followed by a `tt(%)' or `tt(#)', followed by a
 space.  Without the `tt(%<<)', those two characters would be included
 in the string to be truncated.  Note that `tt(%-0<<)' is not equivalent
@@ -375,7 +375,7 @@ delimited by embedded newlines (if any).  If the total length of any line
 of the prompt after truncation is greater than the terminal width, or if
 the part to be truncated contains embedded newlines, truncation behavior
 is undefined and may change in a future version of the shell.  Use
-`tt(%-var(n)LPAR()l.var(true-text).var(false-text)RPAR())' to remove parts
+`tt(%-)var(n)tt(LPAR()l.)var(true-text)tt(.)var(false-text)tt(RPAR())' to remove parts
 of the prompt when the available space is less than var(n).
 )
 enditem()



                 reply	other threads:[~2015-04-03  1:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99B3180D-2602-49B5-AF70-140FF31F9C40@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).