Skip to content
Myr

Fix regression: Trim trailing whitespaces when using --with-nth

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/junegunn/fzf/issues/4272#issuecomment-2677279620

authored by Junegunn Choi · committed by Junegunn Choi · parent c0d407f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • https: //github.com/junegunn/fzf/issues/4272#issuecomment-2677279620

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/options.go+1 added-1 removed
776 unmodified lines
777 return nil, err778 }779 return func(Delimiter) func([]Token, int32) string {780 return func(tokens []Token, index int32) string {781 return JoinTokens(Transform(tokens, nth))781 return strings.TrimRightFunc(JoinTokens(Transform(tokens, nth)), unicode.IsSpace)782 }783 }, nil784 }785
2692 unmodified lines