diff options
author | Robby Russell <robby@planetargon.com> | 2015-06-14 22:18:33 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-06-14 22:18:33 -0700 |
commit | b55effd3bb3e9516c0f450a5938d07f19ad2a307 (patch) | |
tree | 1d3fb446d8eafb8036201576c1dbbdf8d8d7a5c4 /plugins/history-substring-search/history-substring-search.zsh | |
parent | 34d3680232232c82c4e3ee850152d127b7317b3c (diff) | |
parent | 743be91b207d4617e68b04a43311438652cec63d (diff) | |
download | zsh-b55effd3bb3e9516c0f450a5938d07f19ad2a307.tar.gz zsh-b55effd3bb3e9516c0f450a5938d07f19ad2a307.tar.bz2 zsh-b55effd3bb3e9516c0f450a5938d07f19ad2a307.zip |
Merge pull request #3919 from delphij/history-extendedglob
Don't leak extendedglob to global environment.
Diffstat (limited to 'plugins/history-substring-search/history-substring-search.zsh')
-rw-r--r-- | plugins/history-substring-search/history-substring-search.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/history-substring-search/history-substring-search.zsh b/plugins/history-substring-search/history-substring-search.zsh index 22f03dd6d..65f0750db 100644 --- a/plugins/history-substring-search/history-substring-search.zsh +++ b/plugins/history-substring-search/history-substring-search.zsh @@ -175,7 +175,6 @@ fi # implementation details #----------------------------------------------------------------------------- -setopt extendedglob zmodload -F zsh/parameter # @@ -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= @@ -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 |