Skip to content

Commit

Permalink
Fix issue Andersbakken#785. Take out this filtering. You're not meant…
Browse files Browse the repository at this point in the history
… to cycle

through these completions anyway.
  • Loading branch information
Andersbakken committed Sep 7, 2016
1 parent cdee1e4 commit b73535c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/CompletionThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,6 @@ void CompletionThread::process(Request *request)
}
for (unsigned int i = 0; i < results->NumResults; ++i) {
const CXCursorKind kind = results->Results[i].CursorKind;
if (!(options.options & Server::CompletionsNoFilter) && kind == CXCursor_Destructor)
continue;

const CXCompletionString &string = results->Results[i].CompletionString;

const CXAvailabilityKind availabilityKind = clang_getCompletionAvailability(string);
Expand Down Expand Up @@ -351,10 +348,7 @@ void CompletionThread::process(Request *request)
String text = RTags::eatString(clang_getCompletionChunkText(string, j));
if (chunkKind == CXCompletionChunk_TypedText) {
node.completion = text;
if (node.completion.isEmpty()
|| (node.completion.size() > 8
&& node.completion.startsWith("operator")
&& !isPartOfSymbol(node.completion.at(8)))) {
if (node.completion.isEmpty() {
ok = false;
break;
}
Expand Down

0 comments on commit b73535c

Please sign in to comment.