diff --git a/src/u_dlang.pas b/src/u_dlang.pas index e8f95559..7da40ef8 100644 --- a/src/u_dlang.pas +++ b/src/u_dlang.pas @@ -1023,8 +1023,8 @@ begin y := caretPos.y; if t^.position.y > y then continue; - if ((t^.position.y = y) and (t^.position.x <= x)) then - //or (t^.position.y < y) then + if ((t^.position.y = y) and (t^.position.x <= x)) + or (t^.position.y < y) then begin result := i; break;