| Summary: |
Ktexteditor overwrites closing bracket even if automatic brackets is not enabled |
| Product: |
[Frameworks and Libraries] frameworks-ktexteditor
|
Reporter: |
Kishore Gopalakrishnan <kishore96> |
| Component: |
general | Assignee: |
KWrite Developers <kwrite-bugs-null> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
CC: |
mjevans1983, mwoehlke.floss
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
5.58.0 | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Arch Linux | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
https://cgit.kde.org/ktexteditor.git/commit/?id=df555c9b2e572b9c8dd3de872e0b090b8ae7aaa3
|
Version Fixed/Implemented In:
|
5.59
|
|
Sentry Crash Report:
|
|
| |
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.)