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

Suggestion insertion is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 18.0.0
    • Editors
    • macOS

      Consider llama.qtcreator suggestion in Qt Creator 17.0.2:

      qt-creator-17.0.2-tab-and-shift-tab.mp4

      The Tab suggestion works as expected.

      • suggestion is displayed correctly
      • insertion with Tab will insert the whole suggestion
      • cursor is moved after the suggestion

      Shift-Tab works inserting one line after another.

      Qt Creator 18.0.0 has a different behavior:

      qt-creator-18.0.0-tab-and-shift-tab.mp4

      The Tab suggestion has a different behavior:

      • suggestion itself has one empty line below
      • insertion with Tab will preserve the empty line, and the cursor doesn't move

      The Shfit-Tab suggestion is:

      • initially displayed with a new line
      • after the Shift-Tab, the line is inserted at the desired position, and visually it moves one line up

      As a user I would expect the behavior not to change.

      It might be that Qt Creator 18 has fixed some issue in Qt Creator 17. The suggestion insertion in llama.qtcreator is done at https://github.com/cristianadam/llama.qtcreator/blob/main/llamaplugin.cpp#L821

       

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

            davschul David Schulz
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes