Skip to content

Commit d0865ef

Browse files
committed
nvim: simply handle the minimal window config testcase
1 parent 994aa47 commit d0865ef

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

nvim/nvim_test.go

+2-20
Original file line numberDiff line numberDiff line change
@@ -580,26 +580,8 @@ func TestAPI(t *testing.T) {
580580
if err := batch.Execute(); err != nil {
581581
t.Fatal(err)
582582
}
583-
if numberOpt {
584-
t.Fatal("style is minimal; expected the number window option to disabled")
585-
}
586-
if relativenumberOpt {
587-
t.Fatal("style is minimal; expected the relativenumber window option to disabled")
588-
}
589-
if cursorlineOpt {
590-
t.Fatal("style is minimal; expected the cursorline window option to disabled")
591-
}
592-
if cursorcolumnOpt {
593-
t.Fatal("style is minimal; expected the cursorcolumn window option to disabled")
594-
}
595-
if spellOpt {
596-
t.Fatal("style is minimal; expected the spell window option to disabled")
597-
}
598-
if listOpt {
599-
t.Fatal("style is minimal; expected the list window option to disabled")
600-
}
601-
if signcolumnOpt != "auto" {
602-
t.Fatalf("style is minimal; got %q but expected the signcolumn window option to \"auto\"", signcolumnOpt)
583+
if numberOpt || relativenumberOpt || cursorlineOpt || cursorcolumnOpt || spellOpt || listOpt || signcolumnOpt != "auto" {
584+
t.Fatal("expected minimal style")
603585
}
604586
})
605587
}

0 commit comments

Comments
 (0)