From 639253840fc553cc6a082b3f1275e72903ecc0eb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 26 Feb 2025 16:17:12 +0900 Subject: Trim trailing whitespaces after processing ANSI sequences Close #4282 --- src/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/options.go') 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 } -- cgit v1.2.3