mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-22 03:51:15 -03:00
Add default-enabled error log when there is a corrupted history entry
We'll drop the corrupted item on the next vacuum, so this shouldn't be too annoying, and hopefully helps to narrow down #10300 further.
This commit is contained in:
@@ -494,6 +494,15 @@ fn offset_of_next_item_fish_2_0(
|
||||
continue;
|
||||
}
|
||||
|
||||
if line.starts_with(b"\0") {
|
||||
FLOG!(
|
||||
error,
|
||||
"ignoring corrupted history entry around offset",
|
||||
*cursor
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
if !line.starts_with(b"- cmd") {
|
||||
FLOG!(
|
||||
history,
|
||||
|
||||
Reference in New Issue
Block a user