b6e655bff656873948e135b4a1bfb2da26e7cd82
File truncation/rotation during mmap lifetime caused SIGBUS crash because update_for_append() ignored new_size < old_size, leaving a stale mapping that would fault on access. Introduce AppendStatus enum (Unchanged/Appended/Reloaded) so the caller can distinguish shrink events from normal appends. On shrink, reload() rebuilds the mmap and line index. The TUI layer clamps cursor and invalidates viewport cache on Reloaded, matching the existing handle_file_truncated() behavior. Fixes #1
Description
No description provided
Languages
Rust
100%