summaryrefslogtreecommitdiff
path: root/gopher/gophermap
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-07 13:46:33 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-07 13:46:33 -0600
commit48674e9aa96643e960c54f211bab256047a3d88d (patch)
tree1e311bdae29dec7256b9472dbb9a0506ae941a4c /gopher/gophermap
parentb15354929e12dbe5c5ce12b2cfdc77e791217267 (diff)
fix line number on error msg
Diffstat (limited to 'gopher/gophermap')
-rw-r--r--gopher/gophermap/extended.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gopher/gophermap/extended.go b/gopher/gophermap/extended.go
index 7058c45..fed8dfc 100644
--- a/gopher/gophermap/extended.go
+++ b/gopher/gophermap/extended.go
@@ -181,7 +181,7 @@ func (edoc ExtendedMapDocument) Compatible(cwd string, settings FileSystemSettin
case ExtensionType:
from, to, found := strings.Cut(item.Display, "=")
if !found {
- return nil, "", InvalidLine(num)
+ return nil, "", InvalidLine(num+1)
}
extensions[from] = types.Status(to[0])
case UserListType: