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