From 30de2aee7a776fcf336a70014c57b9daf8cb78e0 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 29 Jun 2016 21:49:37 +0200 Subject: [PATCH] editor, show phobos doc, local dir not accepted --- src/ce_editoroptions.pas | 2 +- src/ce_synmemo.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ce_editoroptions.pas b/src/ce_editoroptions.pas index 815f4fca..86b94892 100644 --- a/src/ce_editoroptions.pas +++ b/src/ce_editoroptions.pas @@ -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; diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index e507d07f..853130df 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -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;