Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 4.1.0, Qt Creator 4.3.0
-
Windows 7 64bit
Description
I found at least one edge case where the automatic overwrite of a closing parenthesis fails. Basically, when autocomplete adds closing punctuation and the nested punctuation is skipped, the outside punctuation "forgets" that it was added.
Here's what I mean...
When typing this (| = current cursor location)...
qCritical("%s: Text here.|")
If I type the closing double-quote and then type the closing parenthesis, everything works as expected. If, however, I skip the closing double-quote (using the right arrow, for example) and then type the closing parenthesis, the existing closing parenthesis that was automatically added doesn't get overwritten and I end up with this:
qCritical("%s: Text here.")|)
The net result is that Qt Creator occasionally, erroneously, and unexpectedly adds an extra parenthesis at the end, introducing a typo that's sometimes hard to track down. This was not a problem with previous versions of Qt Creator.
See attachment for my text editor environment settings.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-17052 [REG] Extra closing brace inserted when typing ')' before existing brace
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTCREATORBUG-16946 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
198475,6 | TextEditor: Fix jumping over nested auto inserted characters | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
200224,5 | TextEditor: Jump over braces inserted by the TextDocumentManipulator | 4.4 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
200656,1 | TextEditor: Jump over braces inserted by the TextDocumentManipulator | master | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |
262323,6 | TextEditor: Type over punctuation that can be auto completed | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |