Back out "Back out "Remove awkward assert""

This backs out commit e0c6384ed3.
This commit is contained in:
Johannes Altmanninger 2025-01-19 18:50:34 +01:00
parent 92bd366c1b
commit a7fdd8d002

View File

@ -4848,13 +4848,7 @@ impl<'a> Reader<'a> {
}
let el = &self.data.command_line;
let autosuggestion = &self.autosuggestion;
if self.is_at_line_with_autosuggestion() {
assert!(string_prefixes_string_maybe_case_insensitive(
autosuggestion.icase,
&el.text()[autosuggestion.search_string_range.clone()],
&autosuggestion.text
));
return;
}