From 3eb58a871f1c6d9697d479a0237fd33d628eb414 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Wed, 13 Oct 2010 12:37:23 +0100 Subject: removed a defined-or which needs perl 5.10 --- history-search/rl_history_search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'history-search') diff --git a/history-search/rl_history_search.pl b/history-search/rl_history_search.pl index 32d42a3..eebb6c7 100644 --- a/history-search/rl_history_search.pl +++ b/history-search/rl_history_search.pl @@ -139,7 +139,7 @@ sub update_history_prompt { sub update_history_matches { my ($match_str) = @_; - $match_str //= $search_str; + $match_str = $search_str unless defined $match_str; my %unique; my @matches = grep { m/\Q$match_str/i } @history_cache; -- cgit v1.2.3