editor, don't validate comp menu entry with a dot

e.g completion triggered while typing a slice expression
This commit is contained in:
Basile Burg 2016-09-13 09:08:05 +02:00
parent b1813706cf
commit 9ef37f36e5
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 5 additions and 2 deletions

View File

@ -1832,8 +1832,11 @@ procedure TCESynMemo.completionCodeCompletion(var value: string;
SourceValue: string; var SourceStart, SourceEnd: TPoint; KeyChar: TUTF8Char;
Shift: TShiftState);
begin
// warning: '20' depends on ce_dcd, case knd of, string literals length
value := value[1..value.length-20];
if KeyChar = '.' then
value := '.'
else
// warning: '20' depends on ce_dcd, case knd of, string literals length
value := value[1..value.length-20];
end;
function TCESynMemo.completionItemPaint(const AKey: string; ACanvas: TCanvas;X, Y: integer;