From 43ab2cd30472696ee2f326df665bf56dfac7e5c9 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 26 May 2011 17:25:27 -0700 Subject: [PATCH] fix typos in comments inherited from fizsh source --- history-substring-search.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history-substring-search.zsh b/history-substring-search.zsh index 8eb1d11..b3ba7fd 100644 --- a/history-substring-search.zsh +++ b/history-substring-search.zsh @@ -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}*]})