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

Wrong position on Ctrl-Space with nested struct initialization

XMLWordPrintable

    • 4af4b98f5 (17.0)

      struct Foo {
        int f1;
        int f2;
        int f3;
      };
      
      struct Bar
      {
        Foo b1;
        int b2;
        int b3;
        int b4;
        int b5;
      };
      
      Bar b = {{1, 2, 3}, /* cursor here */ 4, 5, 6};

      Press Ctrl-Space where the cursor is positioned. The highlighted entry should be b2, but it's b4.

        For Gerrit Dashboard: QTCREATORBUG-33009
        # Subject Branch Project Status CR V

            kandeler Christian Kandeler
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes