Commit f190a809 authored by Juha Manninen's avatar Juha Manninen
Browse files

IDE: Improve opening symlinks in editor some more.

git-svn-id: trunk@56004 -
parent bfec6d9c
......@@ -1207,6 +1207,11 @@ begin
// ToDo: Check if there is an editor with a symlink for this "physical" file.
SPath := CodeToolBoss.GetCompleteSrcPathForDirectory('');
// Check if symlink is found in search path or in editor.
if (SearchDirectoryInSearchPath(SPath, ExtractFilePath(FFileName)) > 0)
or Assigned(SourceEditorManager.SourceEditorIntfWithFilename(FFileName))
then
Exit; // Symlink found -> use it.
// Check if "physical" target for a symlink is found in search path or in editor.
if (SearchDirectoryInSearchPath(SPath, ExtractFilePath(Target)) > 0)
or Assigned(SourceEditorManager.SourceEditorIntfWithFilename(Target))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment