From b15354929e12dbe5c5ce12b2cfdc77e791217267 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 7 Sep 2023 13:41:12 -0600 Subject: global-inclusion --- gopher/gophermap/extended.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gopher/gophermap') diff --git a/gopher/gophermap/extended.go b/gopher/gophermap/extended.go index a0360fc..7058c45 100644 --- a/gopher/gophermap/extended.go +++ b/gopher/gophermap/extended.go @@ -212,13 +212,12 @@ func (edoc ExtendedMapDocument) Compatible(cwd string, settings FileSystemSettin case VHostListType: return nil, "", errors.New("Virtual host listings '%' are not supported") case InclusionType: - location := filepath.Join(cwd, item.Selector) - subEdoc, err := openExtended(location, edoc.Location) + subEdoc, err := openExtended(item.Selector, edoc.Location) if err != nil { return nil, "", err } - lines, _, err := subEdoc.Compatible(filepath.Dir(location), settings) + lines, _, err := subEdoc.Compatible(filepath.Dir(item.Selector), settings) if err != nil { return nil, "", err } -- cgit v1.2.3