rwxrob / cmdtab

Apache License 2.0
13 stars 0 forks source link

Error in others.go #20

Open ethanbaker opened 2 years ago

ethanbaker commented 2 years ago

When the build condition in others.go passes, the library cannot compile, as winsize is undefined.

This issue appeared when building another package that imports the library, which gave the following error:

# github.com/rwxrob/cmdtab
../../go/pkg/mod/github.com/rwxrob/cmdtab@v0.10.2/others.go:6:12: undefined: winsize

This can be fixed by refactoring the others.go file to fix the compile error. I believe that this is as simple as renaming winsize to Winsz.