qtcreator inellisense is setting cursor to wrong position in next line

Bug #1013169 reported by Sasa Paporovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Qt
New
Undecided
Unassigned
qtcreator (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

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.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: qtcreator 2.5.0-1ubuntu1
ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
Uname: Linux 3.4.0-5-generic x86_64
ApportVersion: 2.2.2-0ubuntu2
Architecture: amd64
Date: Thu Jun 14 14:41:09 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120510)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no username)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: qtcreator
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

It is like I have thought. Launchpad das dismissed the formatting, but you could still see that I ment that "return r;" should be direct under the "for"

Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :
Revision history for this message
Sasa Paporovic (melchiaros) wrote :
description: updated
description: updated
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Sounds like an upstream bug. Please follow the one you reported.

Changed in qtcreator (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.