SUMMARY Applications that use ktexteditor overwrite the closing bracket even when auto-bracketing is not enabled. STEPS TO REPRODUCE 1. Open Kile or Kate 2. Check that automatic brackets is disabled (In Kate, Settings > Editing > uncheck 'Enable Automatic Brackets') 2. Type 'a()' (without quotes) 3. Place cursor inside the bracket 4. Type '()' (without quotes) OBSERVED RESULT It simply skips the outer bracket as if you're typing to get out of an autocompleted bracket. The resulting entered text is 'a(()' (without quotes). EXPECTED RESULT It should enter 'a(())' (without quotes) as typed. Current behaviour is disruptive and leads to unmatched brackets may be difficult to notice after the fact. SOFTWARE/OS VERSIONS Linux distro: Arch Linux KDE Plasma Version: 5.15.90 KDE Frameworks Version: 5.58.0 Qt Version: 5.13.0 ADDITIONAL INFORMATION Downgrading ktexteditor to 5.57.0 fixes the issue (i.e. it shows the expected behaviour). The issue can be reproduced for '{}' and '[]' brackets too. Possibly related to https://bugs.kde.org/show_bug.cgi?id=368580 Possible duplicate of https://bugs.kde.org/show_bug.cgi?id=318267 (Note that that bug is from 2013, while the current bug is a regression in the current frameworks release.)
Fixed with next KF5 release 5.59. See: https://phabricator.kde.org/D19608 See: https://cgit.kde.org/ktexteditor.git/commit/?id=df555c9b2e572b9c8dd3de872e0b090b8ae7aaa3
*** Bug 408100 has been marked as a duplicate of this bug. ***
*** Bug 408619 has been marked as a duplicate of this bug. ***