mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
history: remove bogus assertion crashing on empty history items
In LastC++11, an empty history item means we either reached the end of history, or the item is actually empty. The second meaning is still true. We never append empty history items but the history file might have been modified. Fixes #10129
This commit is contained in:
parent
b23057ee61
commit
f57c5e3a5f
1 changed files with 0 additions and 2 deletions
|
@ -2032,8 +2032,6 @@ impl HistorySearch {
|
|||
return false;
|
||||
};
|
||||
|
||||
assert!(!item.is_empty());
|
||||
|
||||
// Look for an item that matches and (if deduping) that we haven't seen before.
|
||||
if !item.matches_search(&self.canon_term, self.search_type, !self.ignores_case()) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue