Summary: | Indentation broken if automatic brackets is used | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Alfonso Arbona Gimeno <nakerium> |
Component: | indentation | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aspotashev, karthik.periagaram |
Priority: | NOR | ||
Version: | 5.58.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/commit/29122ad59afeced0296d23fb6153c4f04c008ac1 | Version Fixed In: | |
Sentry Crash Report: |
Description
Alfonso Arbona Gimeno
2017-01-25 06:08:40 UTC
Confirmed. To trigger this, you only need to set "Indentation using" to tabs. Leave everything else as defaults. Arch packages (KDE frameworks 5.58.0, Qt 5.12.3, Kwrite version 19.04.1) are newer, so I'll update the version for this bug. Note: When Indentation is set to use spaces, this behavior does NOT happen. Example and behavior with indentation using spaces: Start with, int main() { ....while (true)| } Press enter int main() { ....while (true) ........| } Open braces int main() { ....while (true) ....{|} } Press enter int main() { ....while (true) ....{ ........| ....} } A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/267 Git commit 29122ad59afeced0296d23fb6153c4f04c008ac1 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 27/01/2022 at 07:11. Pushed by cullmann into branch 'master'. When using tabs, use tabs to auto indent Related: bug 367966 M +1 -1 src/script/data/indentation/cstyle.js M +1 -0 src/utils/kateautoindent.cpp https://invent.kde.org/frameworks/ktexteditor/commit/29122ad59afeced0296d23fb6153c4f04c008ac1 |