summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-01-13 15:31:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-01-13 15:31:31 +0000
commite38389d83e7962759138763a038ed9f2f8e23ec9 (patch)
tree3211aaed10ac249376a32234863b0e3de83b453c /Doc/Zsh
parent54f2a2480f8e8de0fe4b0c5ed3208b7ce50dbc68 (diff)
downloadzsh-e38389d83e7962759138763a038ed9f2f8e23ec9.tar.gz
zsh-e38389d83e7962759138763a038ed9f2f8e23ec9.tar.xz
zsh-e38389d83e7962759138763a038ed9f2f8e23ec9.zip
20708: enhance replace-string
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/contrib.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 14a402785..9f74af154 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -814,6 +814,13 @@ replaced by the var(N)th parenthesised expression matched.  The form
 `tt(\{)var(N)tt(})' may be used to protect the digit from following
 digits.
 
+By default the previous source or replacement string will not be offered
+for editing.  However, this feature can be activated by setting the style
+tt(edit-previous) in the context tt(:zle:)var(widget) (for example,
+tt(:zle:replace-string)) to tt(true).  In addition, a positive
+numeric argument forces the previous values to be offered, a negative or
+zero argument forces them not to be.
+
 For example, starting from the line:
 
 example(print This line contains fan and fond)