Avoid missing updates after some operations on selection

The logic at the end of Text::dispatch failed when needsUpdate and
singleParUpdate were true at the same time.
This commit is contained in:
Jean-Marc Lasgouttes 2024-08-30 17:26:48 +02:00
parent 5ca48a7a39
commit 4d46f766ea
2 changed files with 2 additions and 1 deletions

View File

@ -6386,7 +6386,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// FIXME: the following code should go in favor of fine grained
// update flag treatment.
if (singleParUpdate) {
if (singleParUpdate && !needsUpdate) {
// Inserting characters does not change par height in general. So, try
// to update _only_ this paragraph. BufferView will detect if a full
// metrics update is needed anyway.

View File

@ -126,6 +126,7 @@ What's new
- Fix crash when deleting tabs in a selection (with S-BackTab) in a
text-only inset (ERT, Listings...).
- Fix display glitches when applying some operations to a selection.
* INTERNALS