https://bugs.kde.org/show_bug.cgi?id=407852

            Bug ID: 407852
           Summary: Ktexteditor overwrites closing bracket even if
                    automatic brackets is not enabled
           Product: frameworks-ktexteditor
           Version: 5.58.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: kishor...@gmail.com
  Target Milestone: ---

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.)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to