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

Text cursor is positioned wrong when using tab key at tab stops

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.4.0
    • Qt Creator 2.4.0-beta
    • Editors
    • None
    • OS X 10.5.8
      Qt Creator 1.3.81 snapshot 201003050030
    • 24fc61857cd7ef94de90ae97eb98b44d56ef2679

    Description

      When using tab key at a tab stop position, the cursor is placed wrong.

      1. Open a text file in Creator
      2. Make sure Insert spaces instead of tabs in preferences is off. And the tab size is 4.
      3. In a new line, type "1234" and notice the line and col position at the top-right of the window. It should say "Col: 5" and the cursor is right next to the letter "4."
      4. Hit the Tab key.
      5. Note that the Col position now say "Col: 9" but the cursor is still right next to the letter "4" instead of 4 character width away.

      It's like there's a invisible/nun-functioning tab character added. All the column position int the line from that point on is wrong.

      Attachments

        1. Picture 1.png
          15 kB
          Stephen Chu
        2. Tab Width vs. Spaces Width.jpg
          26 kB
          Maximilian Hrabowski
        3. Picture 1.png
          8 kB
          Stephen Chu
        4. demos_textedit.patch
          19 kB
          Eike Ziller
        5. demos_textedit.png
          48 kB
          Eike Ziller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            leamelo Leandro T. C. Melo
            stephenju Stephen Chu
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes