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

            Bug ID: 402594
           Summary: Brace matching is incorrect in Overwrite mode.
           Product: kate
           Version: 17.12.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: yury.dubin...@gmail.com
  Target Milestone: ---

SUMMARY
The second "Go to matching bracket" command should return us to the first
bracket. This is so in Insert mode. However, in Overwrite mode, the second
command doesn't return us to the first bracket. The problem is that "Go to
matching bracket" command moves the cursor to the position next to closing
bracket. In insert mode, Kate sees the bracket when the caret is moved right
after the bracket. But, in Overwrite mode, Kate sees the bracket only in the
caret position. I believe, in order to correct this error, in Overwrite mode, 
"bracket matching" should move the caret to the position of the bracket for
both, the opening and closing brackets.

STEPS TO REPRODUCE
1. Switch to Overwrite mode
2. Place the cursor to an opening bracket. Press Ctrl+6 (Go to matching
bracket)
The cursor will be placed right after the matching bracket.
3. Press again Ctrl+6 

OBSERVED RESULT
The cursor will stay on the same position, behind the matching bracket. 

EXPECTED RESULT
Perform the same sequence of commands in Insert mode. The cursor will be placed
  in position of the first bracket.  

SOFTWARE/OS VERSIONS
Linux/Ubuntu Gnome.
(available in About System)

ADDITIONAL INFORMATION

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

Reply via email to