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

Indentation may break when joining lines with Del

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 11.0.0-rc1
    • C/C++/Obj-C++ Support
    • All

      Steps to reproduce:

      • add some simple function
      void func() {
      
      } 
      • check indentation below this function - everything is fine (adding stuff / Ctrl+I works as expected)
      • get back inside the function, into the line currently only containing whitespaces (for its indent)
      • remove all ws from end to beginning by using backspace until you're back in the predecessor line right after the curly brace
      • now use Delete key to bring the closing curly brace one line above, code should now look like
      void func() {} 

      with the cursor placed between the curly braces

      • step out of this by using Cursor-Right / Cursor-Down
      • check indentation below the function - everything now has minimum indentation of what would have been inside the curly braces before modifying

      Note: Modifying the line of void func().. now (or any line before this line lets the indentation work again correctly also below the function)

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

            kandeler Christian Kandeler
            cstenger Christian Stenger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes