diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-26 16:17:12 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-26 16:17:12 +0900 |
| commit | 639253840fc553cc6a082b3f1275e72903ecc0eb (patch) | |
| tree | ee2f85e02020ea3e2bcc7f7afcba4caf7b698eaf /src/options.go | |
| parent | 710ebdf9c14e0c88b0cfc843ce08edcdd4554571 (diff) | |
| download | fzf-639253840fc553cc6a082b3f1275e72903ecc0eb.tar.gz | |
Trim trailing whitespaces after processing ANSI sequences
Close #4282
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go index a526d3b7..8a9e33ff 100644 --- a/src/options.go +++ b/src/options.go @@ -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 } |
