From 48674e9aa96643e960c54f211bab256047a3d88d Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 7 Sep 2023 13:46:33 -0600 Subject: fix line number on error msg --- gopher/gophermap/extended.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gopher') 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: -- cgit v1.2.3