Be more strict when evaluating whether the cursor is inside the selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26159
a592a061-630c-0410-9148-
cb99ea01b6c8
// Don't do anything if we right-click a
// selection, a context menu will popup.
if (bvcur.selection() && cur >= bvcur.selectionBegin()
// Don't do anything if we right-click a
// selection, a context menu will popup.
if (bvcur.selection() && cur >= bvcur.selectionBegin()
- && cur <= bvcur.selectionEnd()) {
+ && cur < bvcur.selectionEnd()) {
cur.noUpdate();
return;
}
cur.noUpdate();
return;
}