diff --git a/IDE/src/ui/OutputWidget.bf b/IDE/src/ui/OutputWidget.bf index 9bc5f8f5..646d1367 100644 --- a/IDE/src/ui/OutputWidget.bf +++ b/IDE/src/ui/OutputWidget.bf @@ -5,6 +5,7 @@ using System.Threading.Tasks; using Beefy.widgets; using Beefy.theme.dark; using Beefy.gfx; +using System.IO; namespace IDE.ui { @@ -171,6 +172,19 @@ namespace IDE.ui } } } + + if (selectionText.StartsWith(" ")) + { + int colonPos = selectionText.IndexOf(": "); + if (colonPos > 0) + { + String testPath = scope String(selectionText, 1, colonPos - 1); + if (File.Exists(testPath)) + { + filePath = scope:: String(testPath); + } + } + } } if ((errLine != -1) && (errLineChar != -1) && (filePath != null))