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

            Bug ID: 372486
           Summary: kate/kwrite bracket highlight off by 1 set -
                    highlights previous open instead of current
           Product: kate
           Version: 16.08
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: drankina...@suddenlinkmail.com
  Target Milestone: ---

Created attachment 102240
  --> https://bugs.kde.org/attachment.cgi?id=102240&action=edit
Screenshot of Proper Bracket Highlight of Enclosed Parenthetical

kate/kwrite ver. 16.08.3.

The bracket highlight in kate/kwrite highlights the previous set's opening
bracket instead of the opening for the current bracket set. Take for example
the following C code (with the cursor position denoted by the pipe '|'):

    if (!(pp = popen (cmd, "r")|)) {

In all previous versions of kate/kwrite the open parenthesis '(' before command
would be highlighted by bracket highlight to show the closing parenthesis just
typed would be closing the set related to the 'popen' command, e.g.

    popen (cmd, "r")

This is the expected behavior. A screenshot is attached showing the expected
proper highlighting as it currently works in k3 kwrite.

Inexplicably, the bracket highlight in version 16.08.3 highlights the opening
parenthesis before the assignment when the cursor is in the position shown.
This is unexpected behavior and horribly distracting as the highlight should
not display until the closing parenthesis is on the left of the current
insertion point -- not to the right of the insertion point.

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

Reply via email to