From: Jean-Marc Lasgouttes Date: Wed, 14 Jun 2017 13:08:27 +0000 (+0200) Subject: When entering an inset by cursor, reset boundary X-Git-Tag: 2.2.4~111 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5f08a1b41d89071aef99d67d24ad2aa0c72dfcb8;p=features.git When entering an inset by cursor, reset boundary This happens when cursor-left/right enters an inset. Fixes bug #10630. (cherry picked from commit 2e84b8030e69f209d6565d11b4ae84f01d450d0d) --- diff --git a/src/Text2.cpp b/src/Text2.cpp index c3d696e7e2..a8ee59ee9b 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -615,6 +615,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front) --cur.pos(); inset->edit(cur, front); cur.setCurrentFont(); + cur.boundary(false); return true; } @@ -634,6 +635,7 @@ bool Text::checkAndActivateInsetVisual(Cursor & cur, bool movingForward, bool mo inset->edit(cur, movingForward, movingLeft ? Inset::ENTRY_DIRECTION_RIGHT : Inset::ENTRY_DIRECTION_LEFT); cur.setCurrentFont(); + cur.boundary(false); return true; } diff --git a/status.22x b/status.22x index 6b90ee133c..abda25426b 100644 --- a/status.22x +++ b/status.22x @@ -76,6 +76,8 @@ What's new - Fix potential crash when cursor enters an inset (bug 10691). +- Avoid a case of stuck cursor after entering an inset (bug 10630). + * INTERNALS