mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 257913 - Content Assist misses proposals, patch by Jens Elementhaler
This commit is contained in:
parent
dea50171c7
commit
66e2ae5119
2 changed files with 2 additions and 3 deletions
|
@ -516,7 +516,7 @@ public class CCompletionProposal implements ICCompletionProposal, ICompletionPro
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
final int wordLength= word.length();
|
final int wordLength= word.length();
|
||||||
if (offset >= fReplacementOffset + wordLength)
|
if (offset > fReplacementOffset + wordLength)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -153,8 +153,7 @@ public class CContentAssistProcessor extends ContentAssistProcessor {
|
||||||
// wrap proposals which are no ICCompletionProposals
|
// wrap proposals which are no ICCompletionProposals
|
||||||
boolean wrapped= false;
|
boolean wrapped= false;
|
||||||
int i=0;
|
int i=0;
|
||||||
for (Object element : proposals) {
|
for (ICompletionProposal proposal : proposals) {
|
||||||
ICompletionProposal proposal= (ICompletionProposal) element;
|
|
||||||
if (proposal instanceof ICCompletionProposal) {
|
if (proposal instanceof ICCompletionProposal) {
|
||||||
proposalsInput[i++]= (ICCompletionProposal)proposal;
|
proposalsInput[i++]= (ICCompletionProposal)proposal;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue