mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Always place the cursor before a separator inset when clicking
This commit is contained in:
parent
a3926b9e60
commit
55b3374f3e
@ -2512,8 +2512,11 @@ bool BufferView::mouseSetCursor(Cursor & cur, bool select)
|
||||
// FIXME: (2) if we had a working InsetText::notifyCursorLeaves,
|
||||
// the leftinset bool would not be necessary (badcursor instead).
|
||||
bool update = leftinset;
|
||||
if (!do_selection && d->cursor_.inTexted())
|
||||
if (!do_selection && d->cursor_.inTexted()) {
|
||||
update |= checkDepm(cur, d->cursor_);
|
||||
if (cur.pos() && cur.paragraph().isEnvSeparator(cur.pos() - 1))
|
||||
cur.posBackward();
|
||||
}
|
||||
|
||||
if (!do_selection)
|
||||
d->cursor_.resetAnchor();
|
||||
|
Loading…
Reference in New Issue
Block a user