diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-05-30 20:52:13 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-05-30 21:02:35 +0900 |
| commit | 15d6c17390ba4d795989bcc65c0afaf91caaf41d (patch) | |
| tree | d7e98b8bdbc337ff53bac2eabcd797b4f9a398a1 /src/result_test.go | |
| parent | a9d1d424364ecbdbdb204fc1ffb2463b44bf1e6c (diff) | |
| download | fzf-15d6c17390ba4d795989bcc65c0afaf91caaf41d.tar.gz | |
Fix ANSI attributes lost when nth:regular is set
Example:
# foo was not displayed in italic
echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:dim,nth:regular --nth 1
Diffstat (limited to 'src/result_test.go')
| -rw-r--r-- | src/result_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/result_test.go b/src/result_test.go index 79cc1ee2..6e6d4387 100644 --- a/src/result_test.go +++ b/src/result_test.go @@ -176,7 +176,7 @@ func TestColorOffset(t *testing.T) { assert(9, 35, 37, tui.NewColorPair(4, 8, tui.Bold)) expected := tui.Bold | attr if attr == tui.AttrRegular { - expected = tui.AttrRegular + expected = tui.Bold } assert(10, 37, 39, tui.NewColorPair(4, 8, expected)) assert(11, 39, 40, tui.NewColorPair(4, 8, tui.Bold)) |
