Allow whitespace as separator in --color option

This commit is contained in:
Junegunn Choi committed 2025-05-04 15:08:23 +09:00
1 parent 46dabccdf1
commit c6d83047e5
4 files changed
+35 -4

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ func TestColorSpec(t *testing.T) {
t.Errorf("colors should now be equivalent: %v, %v", tui.Dark256, customized)
}
customized, _ = parseTheme(theme, "fg:231,dark,bg:232")
customized, _ = parseTheme(theme, "fg:231,dark bg:232")
if customized.Fg != tui.Dark256.Fg || customized.Bg == tui.Dark256.Bg {
t.Errorf("color not customized")
}