From b6e23235f28b1c85e18e9a2b7ba8c6b6c46aecbc Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Wed, 29 Jan 2014 17:00:07 -0500 Subject: bash-4.3-rc2 overlay --- lib/readline/histexpand.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/readline/histexpand.c') diff --git a/lib/readline/histexpand.c b/lib/readline/histexpand.c index 6164e27c..4899b9d3 100644 --- a/lib/readline/histexpand.c +++ b/lib/readline/histexpand.c @@ -272,6 +272,8 @@ get_history_event (string, caller_index, delimiting_quote) if (local_index == 0 || substring_okay) { entry = current_history (); + if (entry == 0) + FAIL_SEARCH (); history_offset = history_length; /* If this was a substring search, then remember the -- cgit v1.2.1