mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
28773: add zle-history-line-set widget
This commit is contained in:
parent
212ca9edf9
commit
24e97ba046
3 changed files with 9 additions and 1 deletions
|
@ -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 $
|
||||
*****************************************************
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue