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

Cursor not redrawn when (un)indenting with tab key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • Qt Creator 2.2.0
    • Qt Creator 2.1.0
    • Editors
    • None
    • 1a55de5d0e40e2754ca02a6f8083bfd90680c8ff

    Description

      When you press TAB to indent the current position (no selection active), this does not force the cursor to made visible. I.e., if you happen to press TAB just before the cursor is hidden again (blinking controlled by Qt internally) you don't see the cursor appearing at its new position until after the blinking period. Contrast with normal key presses, where the cursor is always forced visible again.

      Example:
      Press "d", at a rate of about 5/second, and you'll see the cursor is always immediately drawn at the new position.

      Then
      Press TAB, at the same rate (turn on word wrapping), and you'll see the cursor blinking on and off normally, meaning the new tab position is not made visible at times and you are forced to wait until the cursor becomes visible again via a timer.

      The fix is very simple, I have attached a patch for the current 2.1 branch (it does not break the block indent feature)

      The blinking is still not optimal, but I believe the bug is in Qt itself, will comment once I file it, after that cursor behaves beautifully (IMHO in Qt Creator.

      Attachments

        1. qtcreatortabbug.patch
          0.6 kB
          Dennis Noordsij
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            leamelo Leandro T. C. Melo
            dennis Dennis Noordsij
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes