Fix off-by-one condition when right clicking over selection

Fixes bug #10429.
This commit is contained in:
Jean-Marc Lasgouttes 2021-01-19 19:21:43 +01:00
parent 5908bb3ea6
commit 566b4de5cd

View File

@ -1857,7 +1857,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// 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.noScreenUpdate();
return;
}