]> git.lyx.org Git - features.git/commitdiff
When entering an inset by cursor, reset boundary
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 14 Jun 2017 13:08:27 +0000 (15:08 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Jun 2017 08:31:14 +0000 (10:31 +0200)
This happens when cursor-left/right enters an inset.

Fixes bug #10630.

(cherry picked from commit 2e84b8030e69f209d6565d11b4ae84f01d450d0d)

src/Text2.cpp
status.22x

index c3d696e7e2ffcca53c5e71acc82fc0c13c112ed6..a8ee59ee9b2a3a6f6c3692fc0ac859014a25fa1c 100644 (file)
@@ -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;
 }
 
index 6b90ee133c84f729823c540256b08f7f5c789a0a..abda25426bc3ade3e2ba47dbb378544f76d74a9d 100644 (file)
@@ -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