From f7c8d3157b77c8ae5c4a8236692cf5c4a39e1c87 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 2 Nov 2016 01:23:09 +0000 Subject: [PATCH] global variables: declare up-front --- zsh-history-substring-search.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/zsh-history-substring-search.zsh b/zsh-history-substring-search.zsh index e29c9b1..d7ce6c2 100644 --- a/zsh-history-substring-search.zsh +++ b/zsh-history-substring-search.zsh @@ -38,6 +38,25 @@ # ############################################################################## +#----------------------------------------------------------------------------- +# declare global variables +#----------------------------------------------------------------------------- + +typeset -g BUFFER MATCH MBEGIN MEND CURSOR +typeset -g HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND +typeset -g HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND +typeset -g HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS +typeset -g HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE +typeset -g _history_substring_search_refresh_display +typeset -g _history_substring_search_query_highlight +typeset -g _history_substring_search_result +typeset -g _history_substring_search_query +typeset -g _history_substring_search_raw_matches +typeset -g _history_substring_search_raw_match_index +typeset -g _history_substring_search_matches +typeset -g -A _history_substring_search_unique_filter +typeset -g _history_substring_search_match_index + #----------------------------------------------------------------------------- # configuration variables #-----------------------------------------------------------------------------