fix editor cursor positioning by mouse - for console mode

This commit is contained in:
Vadim Lopatin 2016-09-09 10:31:20 +03:00
parent 8abed864d1
commit 16a5e0be55
1 changed files with 1 additions and 1 deletions

View File

@ -1876,7 +1876,7 @@ class EditLine : EditWidgetBase {
int x0 = i > 0 ? _measuredTextWidths[i - 1] : 0;
int x1 = _measuredTextWidths[i];
int mx = (x0 + x1) >> 1;
if (pt.x < mx) {
if (pt.x <= mx) {
res.pos = i;
return res;
}