1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for bug#44370

This commit is contained in:
Hoda Amer 2004-04-16 19:42:20 +00:00
parent c52fc12cfd
commit 42bb6673a1
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,6 @@
2004-04-16 Hoda Amer
Fix for bug#44370 : [Content Assist] function-style macros have arguments
2004-04-16 David Inglis
Register our adapter factory though new extension point

View file

@ -280,7 +280,15 @@ public class ResultCollector extends CompletionRequestorAdaptor {
// create proposal and add it to completions list
CCompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(),
arguments, image, completionStart, completionLength, relevance);
proposal.setTriggerCharacters(VAR_TRIGGERS);
boolean userMustCompleteParameters= (arguments != null && arguments.length() > 0);
if (userMustCompleteParameters) {
// set the cursor before the closing bracket
proposal.setCursorPosition(replaceString.length() - 1);
}
completions.add(proposal);
}