Permalink
Browse files

Fixed the wrong boolean variable being set in the Html styler, which …

…caused it not to update properly when text was pasted in the editor.
  • Loading branch information...
1 parent c181475 commit d7769ad74d7504fafcbe82a2a613d107febc22ce @ajpalkovic ajpalkovic committed Jul 7, 2010
Showing with 4 additions and 10 deletions.
  1. +4 −10 src/styler_htmlhl.cpp
View
@@ -401,10 +401,7 @@ void Styler_HtmlHL::Insert(unsigned int start, unsigned int length) {
//wxLogDebug(wxT("INSERT: %d %d %d"), start, length, m_cursorPosition);
if(!ShouldStyle()) return;
- if(needReparse) {
- Reparse();
- return;
- }
+ if(needReparse) return;
unsigned int end = start+length;
int count = m_brackets.size();
@@ -423,7 +420,7 @@ void Styler_HtmlHL::Insert(unsigned int start, unsigned int length) {
cxENDLOCK
if(foundBrackets) {
- needReparseTags = true;
+ needReparse = true;
} else {
if(!needReparseTags) {
int size = (int) m_tags.size();
@@ -446,10 +443,7 @@ void Styler_HtmlHL::Delete(unsigned int start, unsigned int end) {
//wxLogDebug(wxT("DELETE: %d %d %d"), start, end, m_cursorPosition);
if(!ShouldStyle()) return;
- if(needReparse) {
- Reparse();
- return;
- }
+ if(needReparse) return;
int count = m_brackets.size();
int length = end - start;
@@ -483,7 +477,7 @@ void Styler_HtmlHL::Delete(unsigned int start, unsigned int end) {
}
}
} else {
- needReparseTags = true;
+ needReparse = true;
}
}

0 comments on commit d7769ad

Please sign in to comment.