fix typos in comments inherited from fizsh source

This commit is contained in:
Sorin Ionescu
2011-06-09 00:10:28 -07:00
committed by Suraj N. Kurapati
parent 7b71437106
commit 43ab2cd304
+2 -2
View File
@@ -54,14 +54,14 @@ history-substring-search-begin() {
if [[ $LASTWIDGET != history-substring-search-* ]]; then if [[ $LASTWIDGET != history-substring-search-* ]]; then
# $BUFFER contains the text that is in the command-line currently. # $BUFFER contains the text that is in the command-line currently.
# we put an extra "\\" before meta characters such as "\(" and "\)", # 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} history_substring_search_query_escaped=${BUFFER//(#m)[\][()\\*?#<>~^]/\\$MATCH}
# for the purpose of highlighting we will also keep a version without # for the purpose of highlighting we will also keep a version without
# doubly-escaped meta characters # doubly-escaped meta characters
history_substring_search_query=${BUFFER} 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. # (k) turns it an array of line numbers. (on) seems to remove duplicates.
# (on) are default options. they can be turned off by (ON). # (on) are default options. they can be turned off by (ON).
history_substring_search_matches=(${(kon)history[(R)*${history_substring_search_query_escaped}*]}) history_substring_search_matches=(${(kon)history[(R)*${history_substring_search_query_escaped}*]})