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

Backspace unindents by Tabsize even when not at the beginning of a line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 13.0.1
    • Qt Creator 13.0.0
    • Editors
    • None
    • All
    • ec88d279a (13.0)

    Description

      Consider the following code (Cursor position marked by `|`):

      int main()
      {
        return 0;                              | // Returns to OS
      }
      

      Pressing backspace now does not delete a single space as in former versions, but up to tabsize spaces. This also happens when Creator is started with `-tcs`.

      Expected: Backspace deletes exactly one space or tab character if there are non-whitespace characters before. It may delete tabsize spaces at once at the beginning of a line (unindent), but not in the middle or the end of a line.

      Reason: I use spaces to align comments or tables and re-adjusting them is really hard now as I have to add spaces again after they has been removed by backspace.

      Attachments

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

        Activity

          People

            davschul David Schulz
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes