mirror of https://gitlab.com/basile.b/dexed.git
editor, don't validate comp menu entry with a dot
e.g completion triggered while typing a slice expression
This commit is contained in:
parent
b1813706cf
commit
9ef37f36e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue