From c5c4ab8eea7e058ef14f268d36ee7d4b88a7f97d Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Wed, 21 Sep 2011 21:59:55 -0700 Subject: [PATCH] change options locally and restore them on return --- zsh-history-substring-search.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh-history-substring-search.zsh b/zsh-history-substring-search.zsh index 9c16030..3eaa1c9 100644 --- a/zsh-history-substring-search.zsh +++ b/zsh-history-substring-search.zsh @@ -79,7 +79,6 @@ bindkey '\e[B' history-substring-search-down # implementation details #----------------------------------------------------------------------------- -setopt extendedglob zmodload -F zsh/parameter # @@ -188,6 +187,8 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then fi function _history-substring-search-begin() { + setopt localoptions extendedglob + _history_substring_search_move_cursor_eol=false _history_substring_search_query_highlight=