Commit 372df33e208e8f6ceeca091ae4922b59e8814449
1 parent
30259611f4
Exists in
master
and in
2 other branches
[FIX] PLUGIN history-substring-search: ERROR "_history-substring-search-end:10: …
…_zsh_highlight: function definition file not found"
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
repos/robbyrussell/oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh
| ... | ... | @@ -175,6 +175,7 @@ fi |
| 175 | 175 | # implementation details |
| 176 | 176 | #----------------------------------------------------------------------------- |
| 177 | 177 | |
| 178 | +setopt extendedglob | |
| 178 | 179 | zmodload -F zsh/parameter |
| 179 | 180 | |
| 180 | 181 | # |
| ... | ... | @@ -283,7 +284,6 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then |
| 283 | 284 | fi |
| 284 | 285 | |
| 285 | 286 | function _history-substring-search-begin() { |
| 286 | - setopt localoptions extendedglob | |
| 287 | 287 | _history_substring_search_move_cursor_eol=false |
| 288 | 288 | _history_substring_search_query_highlight= |
| 289 | 289 | |
| ... | ... | @@ -350,7 +350,6 @@ function _history-substring-search-begin() { |
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | function _history-substring-search-end() { |
| 353 | - setopt localoptions extendedglob | |
| 354 | 353 | _history_substring_search_result=$BUFFER |
| 355 | 354 | |
| 356 | 355 | # move the cursor to the end of the command line |