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

Cursor positions in wrong column after delete + cursor up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 6.0.2
    • Fix Version/s: Qt Creator 7.0.0-beta1
    • Component/s: Editors
    • Labels:
      None
    • Commits:
      a1cc9b4e5c (qt-creator/qt-creator/7.0) a1cc9b4e5c (qt-creator/qt-creator/master) a1cc9b4e5c (qt-creator/tqtc-qt-creator/7.0) a1cc9b4e5c (qt-creator/tqtc-qt-creator/master) a1cc9b4e5c (qt-creator/tqtc-qt-creator/qds-3.1)

      Description

      When I have 

       

      foo-bar
      // baz

      and the cursor is in position just before 'baz' (col:4)

      I press 3x <backspace> to remove the space in front of baz and the two '/'.

      The result looks like

      foo-bar
      baz

      with the cursor in front of 'baz' (col:1)

      Now I press <cursor-up> and I would expect that the cursor is in front of the first foo (so col:1)

      Instead the cursor is between 'foo' and '-bar' in col:4 again, where it was before I started deletion 3x.

      This is a new unexpected behavior.

      It might be nice, if the line 'foo-bar' would have had also '// ' in front, but this is not the case.

       

        Attachments

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

          Activity

            People

            Assignee:
            davschul David Schulz
            Reporter:
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes