mirror of https://github.com/odrling/Aegisub
Meh, small fix to last commit
Originally committed to SVN as r1515.
This commit is contained in:
parent
352c4c93d1
commit
adf6630564
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue