m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23: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

@@ -135,6 +135,7 @@ func Run(opts *Options) (int, error) {
return false
}
item.text, item.colors = ansiProcessor(stringBytes(transformed))
item.text.TrimTrailingWhitespaces()
item.text.Index = itemIndex
item.origText = &data
itemIndex++