MG: fix for empty word completion

git-svn-id: trunk@310 -
This commit is contained in:
lazarus 2001-07-02 13:15:36 +00:00
parent 68552f0239
commit ff39f433d9

View File

@ -727,7 +727,7 @@ Begin
dec(i);
while (i > 0) and (TextS[i] in ['a'..'z','A'..'Z','0'..'9','_']) do
dec(i);
TextS2 := copy(TextS, i + 1, FEditor.CaretX - i - 1);
TextS2 := Trim(copy(TextS, i + 1, FEditor.CaretX - i - 1));
end;
with TCustomSynEdit(Sender) do
P := ClientToScreen(Point(CaretXPix - length(TextS2)*CharWidth