[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 81005] [PATCH] Corresponding parenthesis does not get
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-09-28 7:34:32
Message-ID: 20040928073432.31675.qmail () ktown ! kde ! org
[Download RAW message or body]

------- 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic