]> 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>
Wed, 14 Jun 2017 13:08:27 +0000 (15:08 +0200)
This happesn when cursor-left/right enters an inset.

Fixes bug #10630.

src/Text2.cpp

index 55414684e5f9d5e2ef9bc5211122d19ad1120367..d7d4319d0f715ed85d3f4e0a01f9adb80a27f714 100644 (file)
@@ -593,6 +593,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front)
                --cur.pos();
        inset->edit(cur, front);
        cur.setCurrentFont();
+       cur.boundary(false);
        return true;
 }
 
@@ -612,6 +613,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;
 }