Skip to content

Commit

Permalink
completionOps.ReplaceOnRight
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jul 22, 2024
1 parent 97b5472 commit a35a75d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions atsynedit_cmp/atsynedit_cmp_form.pas
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ TATCompletionOptions = record
TextIndentRightCol: integer;
TextIndent: integer;
ClosingTimerInverval: integer;
ReplaceOnRight: boolean;
ShortcutForAutocomplete: TShortCut;
CommandForShitchTab: integer;
end;
Expand Down Expand Up @@ -886,7 +887,11 @@ procedure TFormATSynEditComplete.DoUpdate;

SList.Clear;
if Assigned(FOnGetProp) then
begin
FOnGetProp(Editor, SList, FCharsLeft, FCharsRight);
if not CompletionOps.ReplaceOnRight then
FCharsRight:= 0;
end;

Caret:= Editor.Carets[0];
FUpdateForCaret.X:= Caret.PosX;
Expand Down Expand Up @@ -1092,6 +1097,7 @@ initialization
TextIndentRightCol:= 3;
TextIndent:= 8;
ClosingTimerInverval:= 300;
ReplaceOnRight:= true;
ShortcutForAutocomplete:= 0;
end;

Expand Down

0 comments on commit a35a75d

Please sign in to comment.