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;
|
||||
|
||||
final int wordLength= word.length();
|
||||
if (offset >= fReplacementOffset + wordLength)
|
||||
if (offset > fReplacementOffset + wordLength)
|
||||
return false;
|
||||
|
||||
try {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue