Commit 65e3017e authored by mae's avatar mae
Browse files

minor code cosmetics

parent e45699d1
......@@ -815,8 +815,7 @@ void CodeCompletion::complete(const TextEditor::CompletionItem &item)
if (QmlJSTextEditor *edit = qobject_cast<QmlJSTextEditor *>(m_editor->widget())) {
if ( {
QTextCursor tc = edit->textCursor();
tc.setPosition(m_editor->position(), QTextCursor::KeepAnchor);
tc.setPosition(m_startPosition, QTextCursor::KeepAnchor);
toInsert =;
edit->insertCodeSnippet(tc, toInsert);
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