Skip to content

Commit

Permalink
Accept CC suggestion with '('
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsAD committed Jul 14, 2016
1 parent 18c9fba commit 1e17151
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Units/Misc/v_autocompleteform.pas
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ procedure TAutoCompleteListBox.CNChar(var message: TMessage);
inherited;

{$IFDEF FPC}
if (message.Result = 0) and (Redirect <> nil) and (TLMChar(message).CharCode <> VK_DOWN) and (TLMChar(message).CharCode <> VK_UP) and (TLMChar(message).CharCode <> VK_RETURN) then
if (message.Result = 0) and (Redirect <> nil) and (not (TLMChar(message).CharCode in [13, 10])) then
{$ELSE}
if (message.Result = 0) and (Redirect <> nil) and (TWMChar(message).CharCode <> VK_DOWN) and (TWMChar(message).CharCode <> VK_UP) and (TWMChar(message).CharCode <> VK_RETURN) then
if (message.Result = 0) and (Redirect <> nil) and (not (TWMChar(message).CharCode in [13, 10])) then
{$ENDIF}
begin
Redirect.SetFocus;
Expand Down Expand Up @@ -1004,6 +1004,8 @@ procedure TParamHint.Show(StartPoint,BracketPoint: TPoint;Decl : TciProcedureDec
FBracketPoint:= BracketPoint;

CalculateBounds; //Calculate the size we need!

FSynEdit.SetFocus();
self.Visible := true;
end;

Expand Down

0 comments on commit 1e17151

Please sign in to comment.