Commit 5daec0bd authored by Roberto Raggi's avatar Roberto Raggi

Show the argument hints only when the cursor is at the right of an open brace.

parent 47719783
......@@ -604,7 +604,7 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
QStringList members;
QStringList specialMembers;
if (ch == QLatin1Char('.') || ch == QLatin1Char('(')) {
if (ch == QLatin1Char('.') || (ch == QLatin1Char('(') && pos == editor->position() - 1)) {
const bool memberCompletion = (ch == QLatin1Char('.'));
QTextCursor tc(edit->document());
tc.setPosition(pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment