Don't determine auto style on init

The automatic style configuration will now only be determined, when
initialized with the WithAutoStyle renderer option.
This commit is contained in:
Christian Muehlhaeuser
2020-03-20 18:39:16 +01:00
parent af31f7f38e
commit 301d3bcf30
3 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func TestTermRenderer(t *testing.T) {
func TestStyles(t *testing.T) {
_, err := NewTermRenderer(
WithStandardStyle("auto"),
WithAutoStyle(),
)
if err != nil {
t.Fatal(err)