diff --git a/src/reader.rs b/src/reader.rs index 20f7acd74..3cf55eb42 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -1859,6 +1859,8 @@ impl ReaderData { if elt == EditableLineTag::Commandline { zelf.clear_pager(); + // We end history search. We could instead update the search string. + zelf.history_search.reset(); } } else { // This can happen if the user presses a control char we don't recognize. No