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

Undo while Rename Usages un-does too much

    XMLWordPrintable

Details

    • 5a8501ffafd24725106b687c8c658354bb370f26 (qt-creator/qt-creator/master)

    Description

      Paste the following snippet into an empyt C++ file:

      int foo(int bar)
      {
          int foo;
          
          return foo
      }
      
      1. Add the missing semicolon after foo
      2. Goto line 3, place cursor in bar, Refactor -> Rename Usages
      3. Change to "baz", but do not press Enter
      4. The light bulb appears
      5. While the red frame is still active, press Ctrl+Z (undo)
      6. The cursor moved to the last line and deleted the semicolon

      In larger files, more things happen, like removing the last inserted (and commited to git) line, but this is the smallest example I can come up with.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-16350
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes