about summary refs log tree commit diff
path: root/Src/Zle/zle_hist.c
diff options
context:
space:
mode:
authorFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2002-12-06 23:24:06 +0000
committerFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2002-12-06 23:24:06 +0000
commite91067d966f719803dae5db08addf7fa5748462b (patch)
treeda45e4053420291d45f4f3cc3448be0037ef9e34 /Src/Zle/zle_hist.c
parenta02a308839ce1e61ad353fdc918211357af50e38 (diff)
downloadzsh-e91067d966f719803dae5db08addf7fa5748462b.tar.gz
zsh-e91067d966f719803dae5db08addf7fa5748462b.tar.xz
zsh-e91067d966f719803dae5db08addf7fa5748462b.zip
17983: Added zle LASTSEARCJ parameter
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r--Src/Zle/zle_hist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index 54da51710..1c17defc7 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -41,6 +41,14 @@ int lastcol;
 /**/
 int histline;
 
+/* Previous search string use in an incremental search */
+
+/**/
+char *previous_search = NULL;
+
+/**/
+int previous_search_len = 0;
+
 #define ZLETEXT(X) ((X)->zle_text ? (X)->zle_text : (X)->text)
 
 /**/
@@ -757,8 +765,6 @@ doisearch(char **args, int dir)
     int hl = histline, savekeys = -1, feep = 0;
     Thingy cmd;
     char *okeymap;
-    static char *previous_search = NULL;
-    static int previous_search_len = 0;
     Histent he;
 
     if (!(he = quietgethist(hl)))