synedit: fixed showing caret on last line if clientheight is exactly height of line

git-svn-id: trunk@15484 -
This commit is contained in:
mattias 2008-06-20 14:26:02 +00:00
parent 4668307b4f
commit 15c5e3efa6

View File

@ -5720,7 +5720,7 @@ begin
if (CX >= fGutterWidth)
and (CX < ClientWidth{$IFDEF SYN_LAZARUS}-ScrollBarWidth{$ENDIF})
and (CY >= 0)
and (CY < ClientHeight{$IFDEF SYN_LAZARUS}-ScrollBarWidth-fTextHeight{$ENDIF})
and (CY <= ClientHeight{$IFDEF SYN_LAZARUS}-ScrollBarWidth-fTextHeight{$ENDIF})
then begin
{$IFDEF SYN_LAZARUS}
SetCaretPosEx(Handle,CX,CY);