From a1bda4e045e4b80e616005ace7312470ef241a34 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 23 Sep 2012 16:44:22 +0200 Subject: [PATCH] Fix bug #8296: Crash when clicking on completion in math When the user clicks on the completion, the completion disappears. This means that we have to fix the cursor before setting it. --- src/BufferView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index ad6309964b..98b84c8fa9 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2442,6 +2442,8 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select) cap::saveSelection(cursor()); d->cursor_.macroModeClose(); + // 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()); -- 2.39.5