diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-11 20:11:06 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-11 20:11:06 +0000 |
commit | 365fa468c5e2bd566e1f0be5945eb3c0c873ecf5 (patch) | |
tree | 392e97269cfcd4fa95c23b2f25fa643dff27d442 /history-search | |
parent | modified rl_history_search to use uberprompt, and added INSTALL section to (diff) | |
download | irssi-scripts-365fa468c5e2bd566e1f0be5945eb3c0c873ecf5.tar.gz irssi-scripts-365fa468c5e2bd566e1f0be5945eb3c0c873ecf5.zip |
history search now uses colour to indicate matches/no-matches
Diffstat (limited to 'history-search')
-rw-r--r-- | history-search/rl_history_search.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/history-search/rl_history_search.pl b/history-search/rl_history_search.pl index f63a6d7..64f4f20 100644 --- a/history-search/rl_history_search.pl +++ b/history-search/rl_history_search.pl @@ -90,7 +90,7 @@ sub script_is_loaded { } unless (script_is_loaded('uberprompt')) { - die "This script requires 'prompt_info' in order to work. " + die "This script requires 'uberprompt.pl' in order to work. " . "Please load it and try again"; } else { history_init(); @@ -119,8 +119,10 @@ sub history_exit { } sub update_history_prompt { + my $col = scalar(@search_matches) ? '%g' : '%r'; Irssi::signal_emit('change prompt', - " reverse-i-search: \`$search_str'", + ' reverse-i-search: `' . $col . $search_str + . '%n' . "'", 'UP_INNER'); } |