Skip to content

Commit

Permalink
fixed first hit of ctrl+space does not show proposals #23
Browse files Browse the repository at this point in the history
  • Loading branch information
amlajmi committed Nov 18, 2016
1 parent aae84e2 commit af7a3e1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ public String apply(IEObjectDescription input) {
@Override
protected void createCompletionProposals() {
IDocument document = getViewer().getDocument();
if (document.get().length()>0) {
BasicText textWidget = getViewer().getTextWidget();
textWidget.setText(document.get(), false);
createCompletionProposals(textWidget.getOffsetAtCursorPosition());
}
BasicText textWidget = getViewer().getTextWidget();
textWidget.setText(document.get(), false);
createCompletionProposals(textWidget.getOffsetAtCursorPosition());
}

@Override
Expand Down

0 comments on commit af7a3e1

Please sign in to comment.