mirror of https://gitlab.com/basile.b/dexed.git
fix #175 - space or space-and-char ransomly inserted after completion
This commit is contained in:
parent
fa3ce3dfd3
commit
cc5661d623
|
@ -2368,10 +2368,10 @@ procedure TCESynMemo.completionCodeCompletion(var value: string;
|
|||
SourceValue: string; var SourceStart, SourceEnd: TPoint; KeyChar: TUTF8Char;
|
||||
Shift: TShiftState);
|
||||
begin
|
||||
if (KeyChar[1] = ' ') then
|
||||
if KeyChar <> '' then
|
||||
begin
|
||||
value := sourceValue + KeyChar[1];
|
||||
end
|
||||
if KeyChar[1] = ' ' then
|
||||
value := sourceValue + KeyChar[1]
|
||||
else
|
||||
begin
|
||||
fLastCompletion := value;
|
||||
|
@ -2380,6 +2380,7 @@ begin
|
|||
else if KeyChar[1] in fCloseCompletionChars then
|
||||
value += KeyChar[1];
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCESynMemo.completionFormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
|
|
Loading…
Reference in New Issue