[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate/KDE/4.9] part/document: fix " matching, it simply will never work
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2012-07-02 13:41:29
Message-ID: 20120702134129.23E70A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 83a6f7c40c8fafe219f1972064b38951b66dd1ea by Dominik Haumann.
Committed on 02/07/2012 at 15:38.
Pushed by dhaumann into branch 'KDE/4.9'.
fix " matching, it simply will never work
FIXED-IN: 4.9
BUG: 301298
M +2 -3 part/document/katedocument.cpp
http://commits.kde.org/kate/83a6f7c40c8fafe219f1972064b38951b66dd1ea
diff --git a/part/document/katedocument.cpp b/part/document/katedocument.cpp
index 5d2189c..cfa3df1 100644
--- a/part/document/katedocument.cpp
+++ b/part/document/katedocument.cpp
@@ -92,8 +92,8 @@ static int dummy = 0;
class KateTemplateScript;
-inline bool isStartBracket( const QChar& c ) { return c == '{' || c == '[' || c == '(' || c == '"'; }
-inline bool isEndBracket ( const QChar& c ) { return c == '}' || c == ']' || c == ')' || c == '"'; }
+inline bool isStartBracket( const QChar& c ) { return c == '{' || c == '[' || c == '('; }
+inline bool isEndBracket ( const QChar& c ) { return c == '}' || c == ']' || c == ')'; }
inline bool isBracket ( const QChar& c ) { return isStartBracket( c ) || isEndBracket( c ); }
class KateDocument::LoadSaveFilterCheckPlugins
@@ -3712,7 +3712,6 @@ bool KateDocument::findMatchingBracket( KTextEditor::Range& range, int maxLines
case ']': opposite = '['; break;
case '(': opposite = ')'; break;
case ')': opposite = '('; break;
- case '"': opposite = '"'; break;
default: return false;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic