Commit 9285f092 authored by Christian Kamm's avatar Christian Kamm

AutoCompleter: Avoid overzealously eating trailing }.

Task-number: QTCREATORBUG-4128
Reviewed-by: Leandro Melo
parent ed521656
......@@ -308,7 +308,10 @@ int AutoCompleter::paragraphSeparatorAboutToBeInserted(QTextCursor &cursor,
cursor.insertText(textToInsert);
cursor.setPosition(pos);
m_allowSkippingOfBlockEnd = true;
// if we actually insert a separator, allow it to be overwritten if
// user types it
if (!textToInsert.isEmpty())
m_allowSkippingOfBlockEnd = true;
return 1;
}
......
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