summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Zle/history-beginning-search-menu2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4bb1855a3..d8af3200b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-10-22  Peter Stephenson  <pws@csr.com>
 
+	* Functions/Zle/history-beginning-search-menu: unposted:
+	make more variables local.
+
 	* unposted, c.f. 27313: INSTALL, NEWS, README, Doc/Zsh/contrib.yo,
 	Doc/Zsh/manual.yo, Doc/Zsh/metafaq.yo, Etc/CONTRIBUTORS,
 	Etc/FAQ.yo, Etc/changelog2html.pl,
@@ -12265,5 +12268,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4794 $
+* $Revision: 1.4795 $
 *****************************************************
diff --git a/Functions/Zle/history-beginning-search-menu b/Functions/Zle/history-beginning-search-menu
index 891374925..105518102 100644
--- a/Functions/Zle/history-beginning-search-menu
+++ b/Functions/Zle/history-beginning-search-menu
@@ -38,7 +38,7 @@ zmodload -i zsh/parameter
 local -aU matches
 local -a display
 
-local search=$LBUFFER
+local search=$LBUFFER MATCH MBEGIN MEND
 
 search=${search//(#m)[\][()\\*?#<>~^]/\\$MATCH}
 if [[ $WIDGET = *-space* ]]; then