Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17052

[REG] Extra closing brace inserted when typing ')' before existing brace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.2.0-beta1
    • Editors

    Description

      I think this is a regression after fixing the brace/quote behavior QTCREATORBUG-14111 that annoyed many people.

      I now have one case when this new behavior is worse than before:

      #define PI 3.1415
      float pi() { return PI; }
      float sum(float a, float b) { return a + b; }
      
      void test()
      {
        sum(2, |);
      }
      
      • Cursor is at the position |
      • Enter pi()); and you get the expected
        sum(2, pi());
      • Enter PI); and you get the wrong
        sum(2, PI););
      • The same happens if code is pasted from clipboard

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              aha_1980 André Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes