Bug 525328 - Tab width in array brackets is 8, different fro rest of file and tab settings of 4
Summary: Tab width in array brackets is 8, different fro rest of file and tab settings...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 9.3.0   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-28 10:48 EDT by Nathan Holder CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments
test project (4.11 KB, application/x-zip-compressed)
2017-09-28 10:48 EDT, Nathan Holder CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Holder CLA 2017-09-28 10:48:16 EDT
Created attachment 270729 [details]
test project

Tab width in array brackets is 8, different from rest of file and tab settings of 4.
Reproduce:
Lines 18,19,20
18: const char header[] =
19: {
20: };

Either of the following:
1 - place cursor on 19 after open bracket and hit enter: 8 spaces of indent
2 - place cursor before close bracket on 20, hit enter, move cursor back to line 20 (empty line), hit tab: 8 spaces of tab (should be 4)

Really shows the strength of the open source ideology that something so simple can be wrong after all these millions of distributed man hours spent on the project.
Comment 1 Nathan Ridge CLA 2017-09-28 15:42:20 EDT
I've noticed this as well.

Are you by chance interested in contributing a fix?