Merge #456: Wrap saved story revision counters consistently

Conflict: crates/doc/src/edit.rs: next's thread_frames (append_story); every rev += 1 is rev.wrapping_add(1)
Conflict: crates/engine/src/cmd/fonts.rs: next's replace (the local-formatting pass moved out of this hunk)
Conflict: crates/engine/src/cmd/text.rs: next's format_chars (apply_char_attrs, typing format); rev += 1 is rev.wrapping_add(1)
This commit is contained in:
aiongg
2026-10-11 12:20:08 +00:00
15 changed files with 73 additions and 28 deletions
+2 -2
View File
@@ -1363,7 +1363,7 @@ fn reapply_cell_styles(d: &mut Document, names: &[String]) {
}
}
}
st.rev += 1;
st.rev = st.rev.wrapping_add(1);
}
}
@@ -1488,7 +1488,7 @@ fn table_style_edit(s: &mut Session, p: &Value) -> Result<Value> {
ts.apply_to(std::sync::Arc::make_mut(t), &cells);
}
}
st.rev += 1;
st.rev = st.rev.wrapping_add(1);
}
ok()
})