Remove trailing whitespaces when using --with-nth

This commit is contained in:
Junegunn Choi
2019-11-12 22:45:25 +09:00
parent 05b5f3f845
commit 751aa1944a
2 changed files with 6 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ func Run(opts *Options, revision string) {
return false
}
item.text, item.colors = ansiProcessor([]byte(transformed))
item.text.TrimTrailingWhitespaces()
item.text.Index = itemIndex
item.origText = &data
itemIndex++