mirror of https://gitlab.com/basile.b/dexed.git
editor, show phobos doc, local dir not accepted
This commit is contained in:
parent
8fb4d233ee
commit
30de2aee7a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue