Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/plugins/texteditor/autocompleter.cpp b/src/plugins/texteditor/autocompleter.cpp
- index 8517c5c03d..2a6a4ba50f 100644
- --- a/src/plugins/texteditor/autocompleter.cpp
- +++ b/src/plugins/texteditor/autocompleter.cpp
- @@ -191,6 +191,11 @@ QString AutoCompleter::autoComplete(QTextCursor &cursor, const QString &textToIn
- QTextDocument *doc = cursor.document();
- const QChar lookAhead = doc->characterAt(cursor.selectionEnd());
- + if (textToInsert == lookAhead)
- + {
- + skipChars = true;
- + }
- +
- int skippedChars = 0;
- if (isQuote(textToInsert) && m_autoInsertQuotes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement