Meh, small fix to last commit

Originally committed to SVN as r1515.
This commit is contained in:
Rodrigo Braz Monteiro 2007-08-19 02:20:09 +00:00
parent 352c4c93d1
commit adf6630564
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void SubsTextEditCtrl::UpdateStyle(int start, int _length) {
// Check if it's a template line // Check if it's a template line
AssDialogue *diag = control->grid->GetDialogue(control->linen); AssDialogue *diag = control->grid->GetDialogue(control->linen);
bool templateLine = diag && diag->Comment && diag->Effect.Lower().StartsWith(_T("template")); bool templateLine = diag && diag->Comment && (diag->Effect.Lower().StartsWith(_T("template")) || diag->Effect.Lower().StartsWith(_T("code")));
// Begin styling // Begin styling
StartStyling(0,255); StartStyling(0,255);