Skip to content

Commit c3f9504

Browse files
sowicmsowicm
authored andcommitted
syntaxhightlight on restore session
1 parent a2603aa commit c3f9504

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LiteEditor/mainbook.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ void MainBook::RestoreSession(SessionEntry& session)
347347
{
348348
editor->untitled(true);
349349
editor->SetFileName(wxString(_("untitled")));
350+
editor->SetSyntaxHighlight(EditorConfigST::Get()->GetLexerForBuffer(ti.contents())->GetName());
350351
}
351352

352353
editor->SetFirstVisibleLine(ti.GetFirstVisibleLine());

0 commit comments

Comments
 (0)