Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

undo and history



-----BEGIN PGP SIGNED MESSAGE-----

This patch further modifies the ZLE undo system, after patch 2746.
It adds some collusion between the history event selection code and
the undo system, so that modifications of arbitrary history lines will
work correctly.  The code to switch to a different history event is also
moved into a single function, reducing code duplication.

begin 644 undo_patch_2.gz
M'XL("/Z-U3("`W5N9&]?<&%T8VA?,@#M7'MOVT82_UOY%*L<X%`VE9`B];+B
M!KDVO0;("TEZ.#3H&;)$140H4B=23NW&W_UF]KWD4I;\NK@XHXWX6,[NS/SF
ML<M9[N_ODP^KR9/?DNC)>1(]GC?\X;#_Q/.?>`/B=0X[_<.@W_`?^\&#=KM=
MUW1(.L%AUS_T>P_VS3\\)QTO=#L=G]`+A/QM&LWB-"(__G+\YL6_/A+'?_K4
M:Q%"GNR3-/JC('FQ6D^*]2HB<4[&29Z1Y7A5D&Q&BCE<F<S'Z>>([#\Q:;U[
M_^*?E);/:2U7T6F<K?-=Z#UHXI/S:#PEXW1*BG&<L'816:?3C"1Q7LB6O[V"
MX;]X_X9W(`FQW]PE^\@..QOA(W182"O!,9]$LPS&E(R!Y"*;$@=.62_+]6J9
MY5'>XET1U1506Y%]?`9IC/1;<5H0<2,_=]EQ,I)<T8ZQ,V"ZR%9G;!2R5]I9
MT^!+4,0'1'?5P9S&^6HR!QE41L/O1&D.CR)^&!("`L?M^X.$,@!<A@VX-%FO
M5A$P"MJ*BSA+=X`&/"J0T>2=47!!9\LHG<;I9R(;IUE!SJ("9*H&DI_E1;2H
MZJS4H4(@=@J$M0O?$R9/8Y)'8Q!)'?DM4;9O.K1CA.[CB7)5?=+I@)\Z#$/P
M:H.R4RLW]SWB>8>=WJ$76CU;K^\.^L*OG6;Q%'[62VY?#EYHP94_'[0)_C%&
M0.QMY`__XAEQSA?KI"!/"0#_3[C<8.='I$T/D-O&-/N:"J(MQ$MC%0&*4SS$
MOPO^NXH6T>(D6AU'T[C(65/\$_9+VD>$4VW*_IM.#KTA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