forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8' into 4.9
Conflicts: src/plugins/android/androidrunnerworker.cpp src/plugins/android/androidrunnerworker.h Change-Id: I52b9117c8a57dc4a34cfc09d1ae9bc76e0752bfc
This commit is contained in:
@@ -230,7 +230,7 @@ bool AutoCompleter::contextAllowsAutoQuotes(const QTextCursor &cursor,
|
||||
}
|
||||
|
||||
// never insert ' into string literals, it adds spurious ' when writing contractions
|
||||
if (textToInsert.at(0) == QLatin1Char('\''))
|
||||
if (textToInsert.at(0) == QLatin1Char('\'') && quote != '\'')
|
||||
return false;
|
||||
|
||||
if (textToInsert.at(0) != quote || isCompleteStringLiteral(tokenText))
|
||||
|
||||
Reference in New Issue
Block a user