m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Support ANSI sequences with mixed ; and : delimiters (#4169)

`make bench` shows no loss of performance.
This commit is contained in:
Junegunn Choi
2025-01-10 17:43:13 +09:00
parent cc1d9f124e
commit 14ef8e8051
2 changed files with 10 additions and 16 deletions

View File

@@ -381,7 +381,7 @@ func TestParseAnsiCode(t *testing.T) {
{"-2", "", -1},
}
for _, x := range tests {
n, _, s := parseAnsiCode(x.In, 0)
n, s := parseAnsiCode(x.In)
if n != x.N || s != x.Exp {
t.Fatalf("%q: got: (%d %q) want: (%d %q)", x.In, n, s, x.N, x.Exp)
}