From 365fa468c5e2bd566e1f0be5945eb3c0c873ecf5 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 11 Oct 2010 21:11:06 +0100 Subject: history search now uses colour to indicate matches/no-matches --- history-search/rl_history_search.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'history-search') 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'); } -- cgit v1.2.3