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

Code folding causes Follow Symbol to scroll to wrong place

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.5.0
    • Qt Creator 4.4.1
    • Editors
    • None
    • Official open source pre-built binary from Qt running on Windows 10.
    • d0bf2a45283e663104a3e6ba7720f9a345ae9b63

    Description

      Steps to reproduce

      1. Open the attached source file.
        I believe the key thing about this file is that there are some lambdas inside a loop inside a function.
      2. Ensure that Animate navigation within file is turned on (under Tools > Options; Text Editor > Display).
      3. Make sure your window size is such that about 60 lines of code are visible in the viewport at once.
      4. Scroll down to FunctionC and fold up the 5 lambdas.
      5. Scroll down to FunctionD and control+click on the call to FunctionC inside it.

      Result: although the text cursor moves to FunctionC, the viewport does not scroll to show the cursor. Instead, it scrolls too far and FunctionB is visible.

      Attachments

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

        Activity

          People

            davschul David Schulz
            ryan.cuthbertson Ryan Cuthbertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes