change options locally and restore them on return

This commit is contained in:
Suraj N. Kurapati 2011-09-21 21:59:55 -07:00
parent 0e58320e78
commit c5c4ab8eea

View file

@ -79,7 +79,6 @@ bindkey '\e[B' history-substring-search-down
# implementation details # implementation details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
setopt extendedglob
zmodload -F zsh/parameter zmodload -F zsh/parameter
# #
@ -188,6 +187,8 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then
fi fi
function _history-substring-search-begin() { function _history-substring-search-begin() {
setopt localoptions extendedglob
_history_substring_search_move_cursor_eol=false _history_substring_search_move_cursor_eol=false
_history_substring_search_query_highlight= _history_substring_search_query_highlight=