diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:41:12 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:41:12 -0600 |
commit | b15354929e12dbe5c5ce12b2cfdc77e791217267 (patch) | |
tree | c0403694860569687e23743aaa2b4223f895caad /gopher/gophermap/extended.go | |
parent | f54ac19a41c34a9ad9f910c4814ae657bf3e7ab1 (diff) |
global-inclusion
Diffstat (limited to 'gopher/gophermap/extended.go')
-rw-r--r-- | gopher/gophermap/extended.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 } |