From adf6630564d8cf534eb5bd4688962549c9131df5 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sun, 19 Aug 2007 02:20:09 +0000 Subject: [PATCH] Meh, small fix to last commit Originally committed to SVN as r1515. --- aegisub/subs_edit_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/subs_edit_ctrl.cpp b/aegisub/subs_edit_ctrl.cpp index 7dd8e6697..424d13a0a 100644 --- a/aegisub/subs_edit_ctrl.cpp +++ b/aegisub/subs_edit_ctrl.cpp @@ -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);