mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08:00
Back out assertion that doesn't hold yet
This commit is contained in:
parent
5db0bd5874
commit
c5db7565cc
|
@ -362,7 +362,9 @@ fn decode_item_fish_2_0(mut data: &[u8]) -> Option<HistoryItem> {
|
|||
let (advance, line) = read_line(data);
|
||||
let line = trim_start(line);
|
||||
// Check this early *before* anything else.
|
||||
assert!(line.starts_with(b"- cmd"));
|
||||
if !line.starts_with(b"- cmd") {
|
||||
return;
|
||||
}
|
||||
|
||||
let (_key, value) = extract_prefix_and_unescape_yaml(line)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user