diff options
-rw-r--r-- | history-search/rl_history_search.pl | 2 |
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; |