------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=81005 ------- Additional Comments From anders alweb dk 2004-09-28 09:34 ------- CVS commit by alund: Backport fix for #81005 CCMAIL: 81005 bugs kde org M +5 -5 katedocument.cpp 1.734.2.8 --- kdelibs/kate/part/katedocument.cpp #1.734.2.7:1.734.2.8 @ -4188,7 +4188,7 @ inline bool isBracket ( const QChar& Bracket matching uses the following algorithm: If in overwrite mode, match the bracket currently underneath the cursor. - Otherwise, if the character to the left of the cursor is an ending bracket, - match it. Otherwise if the character to the right of the cursor is a - starting bracket, match it. Otherwise, if the the character to the left + Otherwise, if the character to the right of the cursor is an starting bracket, + match it. Otherwise if the character to the left of the cursor is a + ending bracket, match it. Otherwise, if the the character to the left of the cursor is an starting bracket, match it. Otherwise, if the character to the right of the cursor is an ending bracket, match it. Otherwise, don't @ -4223,9 +4223,9 @ bool KateDocument::findMatchingBracket( return false; } + } else if ( isStartBracket( right ) ) { + bracket = right; } else if ( isEndBracket( left ) ) { start.setCol(start.col() - 1); bracket = left; - } else if ( isStartBracket( right ) ) { - bracket = right; } else if ( isBracket( left ) ) { start.setCol(start.col() - 1); _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel