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

            Bug ID: 408619
           Summary: Typing close parenthesis has no effect
           Product: kate
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: part
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: mwoehlke.fl...@gmail.com
  Target Milestone: ---

SUMMARY
Katepart suppresses closing brackets waaaaay too eagerly.

STEPS TO REPRODUCE
1. Type some text, e.g. 'return foo()'
2. Place the caret before the ')', i.e. 'return foo(|)' ('|' is the caret)
3. Type ')'

OBSERVED RESULT
Caret advances but no text is inserted.

EXPECTED RESULT
Resulting text is 'return foo()|)' ('|' is the caret).

SOFTWARE/OS VERSIONS
Katepart: 5.58.0
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
Suppressing matching brackets (curly braces, square brackets, parentheses,
etc.) makes sense *iff* the bracket was "just" automatically inserted. However,
that suppression should stop as soon as the user adds a newline or moves the
caret (other than by typing). The current behavior makes it really annoying to
e.g. change 'return foo()' to 'return bar(foo())'.

Moreover, this happens with "enable automatic brackets" turned *off*.

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

Reply via email to