mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
IDE: word completion: when option IdentComplReplaceIdentifier is off behave the same as identifier completion: replace only left side, issue #30510
git-svn-id: trunk@52867 -
This commit is contained in:
parent
ba346b2fc9
commit
2be768995c
@ -74,6 +74,8 @@ begin
|
||||
ICOpenDividerBevel.Caption:=lisIdCOpening;
|
||||
ICAutoStartAfterPointCheckBox.Caption:=lisAutomaticallyInvokeAfterPoint;
|
||||
ICAutoUseSingleIdent.Caption:=lisAutomaticallyUseSinglePossibleIdent;
|
||||
ICAutoUseSingleIdent.Hint:=
|
||||
lisWhenThereIsOnlyOnePossibleCompletionItemUseItImmed;
|
||||
ICShowHelpCheckBox.Caption:=lisShowHelp;
|
||||
ICShowHelpCheckBox.Hint:=lisBestViewedByInstallingAHTMLControlLikeTurbopowerip;
|
||||
|
||||
|
@ -5647,6 +5647,9 @@ resourcestring
|
||||
lisIdCOpening = 'Opening';
|
||||
lisAutomaticallyInvokeAfterPoint = 'Automatically invoke after point';
|
||||
lisAutomaticallyUseSinglePossibleIdent = 'Automatically use single possible identifier';
|
||||
lisWhenThereIsOnlyOnePossibleCompletionItemUseItImmed = 'When there is only '
|
||||
+'one possible completion item use it immediately, without showing the '
|
||||
+'completion box';
|
||||
lisAddParameterBrackets = 'Add parameter brackets';
|
||||
lisReplaceWholeIdentifier = 'Replace whole identifier';
|
||||
lisEnableReplaceWholeIdentifierDisableReplacePrefix = 'Enable = replace '
|
||||
|
@ -2296,6 +2296,8 @@ Begin
|
||||
// the completion is already in Value
|
||||
begin
|
||||
ccSelection := '';
|
||||
if not CodeToolsOpts.IdentComplReplaceIdentifier then
|
||||
SourceEnd:=Editor.LogicalCaretXY;
|
||||
if Value<>'' then AWordCompletion.AddWord(Value);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user