Skip to content

Commit

Permalink
Don't leak extendedglob to global environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
delphij committed May 21, 2015
1 parent 1400346 commit 743be91
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ fi
# implementation details
#-----------------------------------------------------------------------------

setopt extendedglob
zmodload -F zsh/parameter

#
Expand Down Expand Up @@ -284,6 +283,7 @@ 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=

Expand Down Expand Up @@ -350,6 +350,7 @@ function _history-substring-search-begin() {
}

function _history-substring-search-end() {
setopt localoptions extendedglob
_history_substring_search_result=$BUFFER

# move the cursor to the end of the command line
Expand Down

0 comments on commit 743be91

Please sign in to comment.