mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Remove awkward assert
We should really stop asserting for things that at worst don't show an autosuggestion. Fixes #11055
This commit is contained in:
@@ -4832,13 +4832,7 @@ fn update_autosuggestion(&mut self) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let el = &self.data.command_line;
|
let el = &self.data.command_line;
|
||||||
let autosuggestion = &self.autosuggestion;
|
|
||||||
if self.is_at_line_with_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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user