1
0
Fork 0
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:
Anton Leherbauer 2008-12-09 09:32:04 +00:00
parent dea50171c7
commit 66e2ae5119
2 changed files with 2 additions and 3 deletions

View file

@ -516,7 +516,7 @@ public class CCompletionProposal implements ICCompletionProposal, ICompletionPro
return false;
final int wordLength= word.length();
if (offset >= fReplacementOffset + wordLength)
if (offset > fReplacementOffset + wordLength)
return false;
try {

View file

@ -153,8 +153,7 @@ public class CContentAssistProcessor extends ContentAssistProcessor {
// wrap proposals which are no ICCompletionProposals
boolean wrapped= false;
int i=0;
for (Object element : proposals) {
ICompletionProposal proposal= (ICompletionProposal) element;
for (ICompletionProposal proposal : proposals) {
if (proposal instanceof ICCompletionProposal) {
proposalsInput[i++]= (ICCompletionProposal)proposal;
} else {