Advertisement
Guest User

Untitled

a guest
May 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.61 KB | None | 0 0
  1. diff --git a/src/plugins/texteditor/autocompleter.cpp b/src/plugins/texteditor/autocompleter.cpp
  2. index 8517c5c03d..2a6a4ba50f 100644
  3. --- a/src/plugins/texteditor/autocompleter.cpp
  4. +++ b/src/plugins/texteditor/autocompleter.cpp
  5. @@ -191,6 +191,11 @@ QString AutoCompleter::autoComplete(QTextCursor &cursor, const QString &textToIn
  6.      QTextDocument *doc = cursor.document();
  7.      const QChar lookAhead = doc->characterAt(cursor.selectionEnd());
  8.  
  9. +    if (textToInsert == lookAhead)
  10. +    {
  11. +        skipChars = true;
  12. +    }
  13. +
  14.      int skippedChars = 0;
  15.  
  16.      if (isQuote(textToInsert) && m_autoInsertQuotes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement