diff options
| author | ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com> | 2024-06-09 08:43:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 08:43:02 +0200 |
| commit | cedbb9e22846eb4b1fff0c47c3c4dbafb73601f0 (patch) | |
| tree | 5bb2c8e122075c3a507c911e068c02eea3f5026c /plugins/history-substring-search | |
| parent | 8510847ff38a142850e4a065dc3cf09555260ff7 (diff) | |
| download | zsh-cedbb9e22846eb4b1fff0c47c3c4dbafb73601f0.tar.gz zsh-cedbb9e22846eb4b1fff0c47c3c4dbafb73601f0.tar.bz2 zsh-cedbb9e22846eb4b1fff0c47c3c4dbafb73601f0.zip | |
feat(history-substring-search): update to 87ce96b1 (#12486)
Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>
Diffstat (limited to 'plugins/history-substring-search')
| -rw-r--r-- | plugins/history-substring-search/README.md | 8 | ||||
| -rw-r--r-- | plugins/history-substring-search/history-substring-search.zsh | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/history-substring-search/README.md b/plugins/history-substring-search/README.md index 4be744c4c..71a389535 100644 --- a/plugins/history-substring-search/README.md +++ b/plugins/history-substring-search/README.md @@ -57,13 +57,13 @@ Using [antigen](https://github.com/zsh-users/antigen): 1. Add the `antigen bundle` command just before `antigen apply`, like this: -``` +``` antigen bundle zsh-users/zsh-history-substring-search antigen apply ``` - + 2. Then, **after** `antigen apply`, add the key binding configurations, like this: - + ``` # zsh-history-substring-search configuration bindkey '^[[A' history-substring-search-up # or '\eOA' @@ -120,7 +120,7 @@ Usage bindkey "$terminfo[kcuu1]" history-substring-search-up bindkey "$terminfo[kcud1]" history-substring-search-down - Users have also observed that `[OA` and `[OB` are correct values, + Users have also observed that `[OA` and `[OB` are correct values, _even if_ these were not the observed values. If you are having trouble with the observed values, give these a try. diff --git a/plugins/history-substring-search/history-substring-search.zsh b/plugins/history-substring-search/history-substring-search.zsh index 471cc9ad1..2137b7950 100644 --- a/plugins/history-substring-search/history-substring-search.zsh +++ b/plugins/history-substring-search/history-substring-search.zsh @@ -406,7 +406,7 @@ _history-substring-search-end() { # For debugging purposes: # zle -R "mn: "$_history_substring_search_match_index" m#: "${#_history_substring_search_matches} - # read -k -t 200 && zle -U $REPLY + # read -k -t 200 && zle -U -- "$REPLY" # # When this function returns, z-sy-h runs its line-pre-redraw hook. It has no @@ -421,7 +421,7 @@ _history-substring-search-end() { # before removing search highlight and exiting. This ensures no highlights # are left lingering after search is finished. # - read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U $REPLY + read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U -- "$REPLY" region_highlight=( "${(@)region_highlight:#*${highlight_memo}*}" ) fi |
