m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

Trim trailing whitespaces after processing ANSI sequences

Close #4282
This commit is contained in:
Junegunn Choi
2025-02-26 16:17:12 +09:00
parent 710ebdf9c1
commit 639253840f
3 changed files with 7 additions and 1 deletions

View File

@@ -778,7 +778,7 @@ func nthTransformer(str string) (func(Delimiter) func([]Token, int32) string, er
}
return func(Delimiter) func([]Token, int32) string {
return func(tokens []Token, index int32) string {
return strings.TrimRightFunc(JoinTokens(Transform(tokens, nth)), unicode.IsSpace)
return JoinTokens(Transform(tokens, nth))
}
}, nil
}