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

Wrong position on Ctrl-Space with nested struct initialization

    XMLWordPrintable

Details

    • 4af4b98f5 (17.0)

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes