From e38389d83e7962759138763a038ed9f2f8e23ec9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 13 Jan 2005 15:31:31 +0000 Subject: 20708: enhance replace-string --- Doc/Zsh/contrib.yo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc') 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) -- cgit 1.4.1