QmlEditor: Prevent to collect next char twice in completer.

Change-Id: Ibcd7ff84212da3f9ae65b37eadc73eed82f1e32b
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
David Schulz
2016-04-15 14:47:45 +02:00
parent 2f11372dce
commit 9ac313d8cf

View File

@@ -226,7 +226,7 @@ bool AutoCompleter::isInComment(const QTextCursor &cursor) const
QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor,
const QString &text,
QChar,
QChar la,
int *skippedChars) const
{
if (text.length() != 1)
@@ -235,8 +235,6 @@ QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor,
if (! shouldInsertMatchingText(cursor))
return QString();
const QChar la = cursor.document()->characterAt(cursor.position());
const QChar ch = text.at(0);
switch (ch.unicode()) {
case '\'':