Bug 169415

Summary: wrong indentation level chosen after multi-line-function call
Product: [Applications] kate Reporter: Andreas Pakulat <apaku>
Component: indentationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: file with multi-line-calls

Description Andreas Pakulat 2008-08-19 00:59:21 UTC
I'll add a file where this happens. The file has a few multi-line function calls like this:

KDevelop::VcsJob* job = iface->diff( url, url,
                               KDevelop::VcsRevision::createSpecialRevision( KDevelop::VcsRevision::Working ),
                               KDevelop::VcsRevision::createSpecialRevision( KDevelop::VcsRevision::Head ) );

And when I hit enter after the semicolon kate puts the cursor on the same level as the arguments instead of on the level of the first "KDevelop" in the first line.

As I've chosen to re-indent code pasted via clipboard kate wrongly formats all lines following such a multi-line-call
Comment 1 Andreas Pakulat 2008-08-19 00:59:45 UTC
Created attachment 26927 [details]
file with multi-line-calls
Comment 2 Dominik Haumann 2010-02-15 01:48:39 UTC
SVN commit 1090245 by dhaumann:

fix: wrong indentation level chosen after multi-line-function call
@apaku: can you please test and confirm that it works?
BUG: 169415

 M  +3 -3      cstyle.js  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1090245
Comment 3 Andreas Pakulat 2010-02-15 09:37:39 UTC
Might take a bit, as I don't have a current trunk checkout around and am not sure wether I want trunk or 4.4 on my main dev-machine :)
Comment 4 Andreas Pakulat 2010-02-16 13:51:59 UTC
Seems you got lucky :) Confirmed, works just fine now, thanks a lot.