1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Allowed clicking on 'file:' references

This commit is contained in:
Brian Fiete 2020-09-27 22:20:43 -07:00
parent 784bd6d374
commit ec3ea6bd49

View file

@ -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))