mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
When entering an inset by cursor, reset boundary
This happens when cursor-left/right enters an inset.
Fixes bug #10630.
(cherry picked from commit 2e84b8030e
)
This commit is contained in:
parent
c492f22593
commit
5f08a1b41d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user