mu-document: improve sexp updating

Ensure the cached message sexp gets updated in all cases where it's necessary.
This commit is contained in:
Dirk-Jan C. Binnema
2025-08-27 21:42:45 +03:00
committed by Seth Ladygo
parent d07a5bc2c1
commit 76b9000588
3 changed files with 93 additions and 33 deletions

View File

@ -240,8 +240,8 @@ public:
Flags flags_value() const noexcept;
private:
template<typename SexpType> void put_prop(const Field& field, SexpType&& val);
template<typename SexpType> void put_prop(const std::string& pname, SexpType&& val);
template<typename SexpType> void sexp_put_prop(const Field& field, SexpType&& val);
void sexp_remove_prop(const Field& field);
Sexp& cached_sexp() const {
if (cached_sexp_.empty())