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;