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:
parent
784bd6d374
commit
ec3ea6bd49
1 changed files with 14 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue