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

View file

@ -245,7 +245,7 @@ void SubsTextEditCtrl::UpdateStyle(int start, int _length) {
// Check if it's a template line
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
StartStyling(0,255);