From 6126237bc418bbce5afc6ca9398ec8fd06a4f09f Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 16 Jan 2025 13:02:17 +0100 Subject: [PATCH] Remove awkward assert We should really stop asserting for things that at worst don't show an autosuggestion. Fixes #11055 --- src/reader.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/reader.rs b/src/reader.rs index e37f574da..442c0b0c9 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -4832,13 +4832,7 @@ fn update_autosuggestion(&mut self) { } 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; }