diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:46:33 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:46:33 -0600 |
commit | 48674e9aa96643e960c54f211bab256047a3d88d (patch) | |
tree | 1e311bdae29dec7256b9472dbb9a0506ae941a4c /gopher/gophermap/extended.go | |
parent | b15354929e12dbe5c5ce12b2cfdc77e791217267 (diff) |
fix line number on error msg
Diffstat (limited to 'gopher/gophermap/extended.go')
-rw-r--r-- | gopher/gophermap/extended.go | 2 |
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: |