Summary: | Auto Brackets forgets about multiple levels of brackets when overtyping closing bracket | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Matt Whitlock <kde> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daniel, kjslag, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/ktexteditor/8f0813f6c7ed6da15cdc10030b42c34f7ce98fb0 | Version Fixed In: | 5.58 |
Sentry Crash Report: |
Description
Matt Whitlock
2016-09-11 07:56:57 UTC
Git commit 8f0813f6c7ed6da15cdc10030b42c34f7ce98fb0 by loh tar. Committed on 12/04/2019 at 22:29. Pushed by lohtar into branch 'master'. DocumentPrivate: Make bracket handling smart This patch checks if the entered closing bracket is already balanced and skip the input in this case. Targets the "nested autbracket" problem without to base on this enabled config setting. FIXED-IN: 5.58 Differential Revision: https://phabricator.kde.org/D19608 M +12 -0 src/document/katedocument.cpp https://commits.kde.org/ktexteditor/8f0813f6c7ed6da15cdc10030b42c34f7ce98fb0 The new behavior should only be enabled with auto bracketing on - it's super annoying to start out with f(|), type arg() and then end up with f(arg()| instead of f(arg()|). @Daniel: this was accidentally always on, and it's fixed for 5.59, see: https://bugs.kde.org/show_bug.cgi?id=407852 |