about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/zle.yo4
-rw-r--r--Src/Zle/zle_hist.c1
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d23549cc..48e4f531a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-02-18  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 28773, Doc/Zsh/zle.yo, Src/zle_hist.c: add
+	zle-history-line-set widget.
+
 	* 28772: Doc/Zsh/zle.yo, Src/Zle/compcore.c,
 	Src/Zle/compresult.c, Src/Zle/zle.h, Src/Zle/zle_refresh.c,
 	Src/Zle/zle_tricky.c, Src/Zle/zle_utils.c: update regions
@@ -14222,5 +14225,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5201 $
+* $Revision: 1.5202 $
 *****************************************************
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 9c1c83c16..f09dd8303 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -923,6 +923,10 @@ item(tt(zle-line-finish))(
 This is similar to tt(zle-line-init) but is executed every time the
 line editor has finished reading a line of input.
 )
+tindex(zle-history-line-set)
+item(tt(zle-history-line-set))(
+Executed when the history line changes.
+)
 tindex(zle-keymap-select)
 item(tt(zle-keymap-select))(
 Executed every time the keymap changes, i.e. the special parameter
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index b5ff05cd1..347116fd5 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -765,6 +765,7 @@ zle_setline(Histent he)
     histline = he->histnum;
 
     setline(GETZLETEXT(he), ZSL_COPY|ZSL_TOEND);
+    zlecallhook("zle-history-line-set", NULL);
     setlastline();
     clearlist = 1;
     if (remetafy)