editor, show phobos doc, local dir not accepted

This commit is contained in:
Basile Burg 2016-06-29 21:49:37 +02:00
parent 8fb4d233ee
commit 30de2aee7a
2 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ end;
procedure TCEEditorOptionsBase.setPhobosDocRoot(value: TCEPathname);
begin
if not DirectoryExists(value) or (value <> 'https://dlang.org/phobos/') then
if not DirectoryExists(value) and (value <> 'https://dlang.org/phobos/') then
value := 'https://dlang.org/phobos/';
if (value[length(value)] <> DirectorySeparator) and DirectoryExists(value) then
value += DirectorySeparator;

View File

@ -1198,7 +1198,7 @@ begin
edt.CaretY := i + 1;
edt.CaretX := pos - sum + len;
edt.SelectWord;
idt := '#.' + edt.SelText;
idt := '.html#.' + edt.SelText;
break;
end;
sum += linelen;