fix typos in comments inherited from fizsh source
This commit is contained in:
parent
7b71437106
commit
43ab2cd304
1 changed files with 2 additions and 2 deletions
|
|
@ -54,14 +54,14 @@ history-substring-search-begin() {
|
|||
if [[ $LASTWIDGET != history-substring-search-* ]]; then
|
||||
# $BUFFER contains the text that is in the command-line currently.
|
||||
# we put an extra "\\" before meta characters such as "\(" and "\)",
|
||||
# so that they become "\\\|" and "\\\("
|
||||
# so that they become "\\\(" and "\\\)"
|
||||
history_substring_search_query_escaped=${BUFFER//(#m)[\][()\\*?#<>~^]/\\$MATCH}
|
||||
|
||||
# for the purpose of highlighting we will also keep a version without
|
||||
# doubly-escaped meta characters
|
||||
history_substring_search_query=${BUFFER}
|
||||
|
||||
# find all occurrences of the pattern *${seach}* within the history file
|
||||
# find all occurrences of the pattern *${query}* within the history file
|
||||
# (k) turns it an array of line numbers. (on) seems to remove duplicates.
|
||||
# (on) are default options. they can be turned off by (ON).
|
||||
history_substring_search_matches=(${(kon)history[(R)*${history_substring_search_query_escaped}*]})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue