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

qtcreator inellisense is setting cursor to wrong position in next line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • Qt Creator 2.5.0
    • C/C++/Obj-C++ Support
    • None
    • Linux : Ubuntu12.10 64bit alpha1

    Description

      Please look for the original report at:

      https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/1013169

      ---------------------------------------------------

      I am on Ubuntu12.10 alpha1 64bit with qtcreator 2.5.0-1.

      On trying arround with C++11 code the qtcreator intelli sense brings the cursor to the next line in the wrong position. Look at the snippet:

      using Data=vector<int>;
      auto sum(Data &data) -> int {int r{0};
                                   for(auto e : data) r+=e;
                                                            return r;
      

      last line "return r;" should not be on the right side.

      Additional to this on every next enter pressing the curser in further moving to the right.

      I would expect:

      using Data=vector<int>;
      auto sum(Data &data) -> int {int r{0};
                                   for(auto e : data) r+=e;
                                   return r;
      

      --------------------------------------------

      I attach a source file with the snipped and a screenshot of qtcreator, because I am not so sure that lauchpad keeps the formatting correct.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            melchiaros melchiaros
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes