aboutsummaryrefslogtreecommitdiffstats
path: root/history-search
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-13 11:37:23 +0000
committerTom Feist <shabble@metavore.org>2010-10-13 11:37:23 +0000
commit3eb58a871f1c6d9697d479a0237fd33d628eb414 (patch)
treeaec54282cdb914a19789f868ae810012eef961ce /history-search
parentfixed undef bug in uberprompt (diff)
downloadirssi-scripts-3eb58a871f1c6d9697d479a0237fd33d628eb414.tar.gz
irssi-scripts-3eb58a871f1c6d9697d479a0237fd33d628eb414.zip
removed a defined-or which needs perl 5.10
Diffstat (limited to 'history-search')
-rw-r--r--history-search/rl_history_search.pl2
1 files changed, 1 insertions, 1 deletions
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;