From 566b4de5cd4d9ac2d12f3d7b8fa0af8e0f0702da Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 19 Jan 2021 19:21:43 +0100 Subject: [PATCH] Fix off-by-one condition when right clicking over selection Fixes bug #10429. --- src/Text3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 25bc7ec249..07df90ee16 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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; } -- 2.39.5