commit 113511055b63ef39d473fe1d67949dfff81532e5
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Jul 2 16:59:57 2025 +0200

    Force a redraw when cursor macro mode is closed
    
    This is a replacement for a29e22a9 that is more precise and triggers
    less often.
    
    Fixes bug #13192.
---
 src/BufferView.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index e6a4be122e..517ef4185e 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -3120,9 +3120,12 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool const 
select)
                // persistent selection
                cap::saveSelection(cursor());
 
-       d->cursor_.macroModeClose();
-       // If a macro has been finalized, the cursor might have been broken
-       cur.fixIfBroken();
+       if (d->cursor_.inMacroMode()) {
+               d->cursor_.macroModeClose();
+               cur.screenUpdateFlags(Update::Force);
+               // If a macro has been finalized, the cursor might have been 
broken
+               cur.fixIfBroken();
+       }
 
        // Has the cursor just left the inset?
        bool const leftinset = (&d->cursor_.inset() != &cur.inset());
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to