about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-10-22 09:28:30 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-10-22 09:28:30 +0000
commitd5d858b0e2a1d87348124013646a083d4f9e43bb (patch)
treedbc40ea4cd8d2506d4b8b1eb5834f48bd40f8265
parent7c4c41a0bbe38cf9bafb9ee1999f4e364b1872f7 (diff)
downloadzsh-d5d858b0e2a1d87348124013646a083d4f9e43bb.tar.gz
zsh-d5d858b0e2a1d87348124013646a083d4f9e43bb.tar.xz
zsh-d5d858b0e2a1d87348124013646a083d4f9e43bb.zip
unposted: more local variables needed
-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