cedbb9e22846eb4b1fff0c47c3c4dbafb73601f0

Author
ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(history-substring-search): update to 87ce96b1 (#12486)

Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com>

Diff

 1diff --git a/.github/dependencies.yml b/.github/dependencies.yml
 2index d3b26936180be6a48507113787fb54c8b3269cff..ce28e34c984154ca8c3f73e17b0c3bda56301471 100644
 3--- a/.github/dependencies.yml
 4+++ b/.github/dependencies.yml
 5@@ -21,7 +21,7 @@ dependencies:
 6   plugins/history-substring-search:
 7     repo: zsh-users/zsh-history-substring-search
 8     branch: master
 9-    version: 8dd05bfcc12b0cd1ee9ea64be725b3d9f713cf64
10+    version: 87ce96b1862928d84b1afe7c173316614b30e301
11     precopy: |
12       set -e
13       rm -f zsh-history-substring-search.plugin.zsh
14diff --git a/plugins/history-substring-search/README.md b/plugins/history-substring-search/README.md
15index 4be744c4c7b27838434a2e9ed8f1ede9214bc457..71a389535527ad344f54b8ab4217ab077cdf5476 100644
16--- a/plugins/history-substring-search/README.md
17+++ b/plugins/history-substring-search/README.md
18@@ -57,13 +57,13 @@ Using [antigen](https://github.com/zsh-users/antigen):
19 
20 1. Add the `antigen bundle` command just before `antigen apply`, like this:
21 
22-```
23+``` 
24 antigen bundle zsh-users/zsh-history-substring-search
25 antigen apply
26 ```
27-
28+ 
29 2. Then, **after** `antigen apply`, add the key binding configurations, like this:
30-
31+ 
32 ```
33 # zsh-history-substring-search configuration
34 bindkey '^[[A' history-substring-search-up # or '\eOA'
35@@ -120,7 +120,7 @@ Usage
36           bindkey "$terminfo[kcuu1]" history-substring-search-up
37           bindkey "$terminfo[kcud1]" history-substring-search-down
38 
39-      Users have also observed that `[OA` and `[OB` are correct values,
40+      Users have also observed that `[OA` and `[OB` are correct values, 
41       _even if_ these were not the observed values. If you are having trouble
42       with the observed values, give these a try.
43 
44diff --git a/plugins/history-substring-search/history-substring-search.zsh b/plugins/history-substring-search/history-substring-search.zsh
45index 471cc9ad116e8183a846b75a30591d37f4b0bb58..2137b79502af058ebbc171582e71894192290871 100644
46--- a/plugins/history-substring-search/history-substring-search.zsh
47+++ b/plugins/history-substring-search/history-substring-search.zsh
48@@ -406,7 +406,7 @@ _history-substring-search-end() {
49 
50   # For debugging purposes:
51   # zle -R "mn: "$_history_substring_search_match_index" m#: "${#_history_substring_search_matches}
52-  # read -k -t 200 && zle -U $REPLY
53+  # read -k -t 200 && zle -U -- "$REPLY"
54 
55   #
56   # When this function returns, z-sy-h runs its line-pre-redraw hook. It has no
57@@ -421,7 +421,7 @@ _history-substring-search-end() {
58     # before removing search highlight and exiting. This ensures no highlights
59     # are left lingering after search is finished.
60     #
61-    read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U $REPLY
62+    read -k -t ${HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT:-1} && zle -U -- "$REPLY"
63     region_highlight=( "${(@)region_highlight:#*${highlight_memo}*}" )
64   fi
65