Force a metrics update of buffer after reload

It makes reload more robust and is in any case good enough to avoid
crash in #139091.

Fixes bug #13091.

(cherry picked from commit 52ec69a1af)
This commit is contained in:
Jean-Marc Lasgouttes 2024-08-27 00:09:04 +02:00
parent f95e238ccd
commit f06de64047
2 changed files with 3 additions and 0 deletions

View File

@ -5585,6 +5585,7 @@ Buffer::ReadStatus Buffer::reload()
removePreviews();
updatePreviews();
errors("Parse");
changed(true);
return status;
}

View File

@ -52,6 +52,8 @@ What's new
modification. Only file deletion will trigger the modification
flag now (see bug 12819).
- fix crash when using Save As... with previews enabled (bug 13091).
* DOCUMENTATION AND LOCALIZATION