summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-12 22:45:25 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-12 23:20:09 +0900
commit751aa1944ae7fd1d8d1a12cc622f77cde160bb52 (patch)
treedb21f7426ca5383c1c4e0c551510c31a3e11b14f /src/core.go
parent05b5f3f845a88e9b034f3302bb50672fc5b7f8c7 (diff)
Remove trailing whitespaces when using --with-nth
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.go b/src/core.go
index 087c7df9..9d118a49 100644
--- a/src/core.go
+++ b/src/core.go
@@ -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++