diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-25 19:29:37 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-25 19:30:41 +0900 |
| commit | 11841f688bd12e56c11dc2ae71911a1e25213951 (patch) | |
| tree | 25732a5add40e7d70ac01450ab18e1e133a8e15f /src/options_test.go | |
| parent | 03c4f042463b2cf96dbb05fdbd06cfbb4903e6c8 (diff) | |
| download | fzf-11841f688bd12e56c11dc2ae71911a1e25213951.tar.gz | |
Add support for text styling using --color
Close #1663
Diffstat (limited to 'src/options_test.go')
| -rw-r--r-- | src/options_test.go | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/options_test.go b/src/options_test.go index 78207275..a8fc75bd 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -295,7 +295,7 @@ func TestColorSpec(t *testing.T) { } customized := parseTheme(theme, "fg:231,bg:232") - if customized.Fg != 231 || customized.Bg != 232 { + if customized.Fg.Color != 231 || customized.Bg.Color != 232 { t.Errorf("color not customized") } if *tui.Dark256 == *customized { @@ -313,18 +313,6 @@ func TestColorSpec(t *testing.T) { } } -func TestParseNilTheme(t *testing.T) { - var theme *tui.ColorTheme - newTheme := parseTheme(theme, "prompt:12") - if newTheme != nil { - t.Errorf("color is disabled. keep it that way.") - } - newTheme = parseTheme(theme, "prompt:12,dark,prompt:13") - if newTheme.Prompt != 13 { - t.Errorf("color should now be enabled and customized") - } -} - func TestDefaultCtrlNP(t *testing.T) { check := func(words []string, key int, expected actionType) { opts := defaultOptions() |
