forked from qt-creator/qt-creator
AutoCompleter: Avoid overzealously eating trailing }.
Task-number: QTCREATORBUG-4128 Reviewed-by: Leandro Melo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user