about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-08-11 09:18:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-08-11 09:18:18 +0000
commit342999a629c449ed96473428b6639f9f6875f681 (patch)
treef82ff45669d4a63d98100a363bd5681fc75316c1
parent20c2246d683e8891560df5ebc466507d9e3002c3 (diff)
downloadzsh-342999a629c449ed96473428b6639f9f6875f681.tar.gz
zsh-342999a629c449ed96473428b6639f9f6875f681.tar.xz
zsh-342999a629c449ed96473428b6639f9f6875f681.zip
unposted: prvent zshaddhistory() from looking like a Yodl macro
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/func.yo2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8dd3e23c7..ac87c9f5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-08-11  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Doc/Zsh/func.yo: prevent zshaddhistory() looking
+	like a Yodl macro.
+
 	* 25429: Rocky Bernstein: Test/E01options.ztst,
 	Test/E02xtrace.ztst: don't assume PS4 is set to the default.
 
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo
index 36b135275..888cf3ce2 100644
--- a/Doc/Zsh/func.yo
+++ b/Doc/Zsh/func.yo
@@ -264,7 +264,7 @@ history with the newline stripped,  which is usually the correct behaviour.
 Then it switches the history context so that the line will
 be written to a history file in the current directory.
 
-example(zshaddhistory() {
+example(zshaddhistory+LPAR()RPAR() {
   print -sr -- ${1%%$'\n'}
   fc -p .zsh_local_history
 })