diff --git a/dub.json b/dub.json index 84f40d2..f948013 100644 --- a/dub.json +++ b/dub.json @@ -12,7 +12,7 @@ "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"], "dependencies": { - "dlangui": "==0.9.90", + "dlangui": "==0.9.93", "dcd": "~>0.9.1" }, diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index 42f7e92..f41b9e1 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -940,6 +940,7 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL return; renameTab(oldfilename, filename); ed.id = filename; + ed.setSyntaxSupport(); if( filename.endsWith(".d") || filename.endsWith(".di") ) ed.editorTool = new DEditorTool(this); else @@ -947,9 +948,9 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL //openSourceFile(filename); refreshWorkspace(); ProjectSourceFile file = _wsPanel.findSourceFileItem(filename, false); - if (file) + if (file) { ed.projectSourceFile = file; - else + } else ed.projectSourceFile = null; _settings.setRecentPath(dlg.path, "FILE_OPEN_PATH"); }