https://bugs.kde.org/show_bug.cgi?id=466351
Bug ID: 466351 Summary: Wrong auto indentation of C code Classification: Applications Product: kate Version: 22.08.2 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: indentation Assignee: kwrite-bugs-n...@kde.org Reporter: mham...@free.fr Target Milestone: --- SUMMARY Wrong auto indentation of C code STEPS TO REPRODUCE Take this snippet (which pass compilation) and select C code style in the bottom-right corner drop-down void test() {int a, b; char c; a = 0;b = 1; c = 'f';} void test2() {int a, b; a = 1;b = 3;} void main() { } Highlight the text then use Selection > Format Indentation OBSERVED RESULT Oddly, indentations are introduced like if the closing function bracket was not taken into account: void test() {int a, b; char c; a = 0;b = 1; c = 'f';} void test2() {int a, b; a = 1;b = 3;} void main() { } EXPECTED RESULT No extra indentation introduced (ie, the original indentation is kept) SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.10 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.19.0-31-generic (64-bit) Graphics Platform: X11 -- You are receiving this mail because: You are watching all bug changes.