summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-12 20:15:04 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-12 20:15:04 +0900
commit84e2262ad63df2112f16b2a80fc661294c3da45e (patch)
tree803f4bf41de9d0011efcc2e29f788ac990fc7c73 /src/util
parent378137d34a2a11b16c66dff2bf4309c7ce232a94 (diff)
downloadfzf-84e2262ad63df2112f16b2a80fc661294c3da45e.tar.gz
Make --accept-nth and --with-nth support templates
Diffstat (limited to 'src/util')
-rw-r--r--src/util/chars.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util/chars.go b/src/util/chars.go
index dd037caa..adde02a6 100644
--- a/src/util/chars.go
+++ b/src/util/chars.go
@@ -184,11 +184,6 @@ func (chars *Chars) TrailingWhitespaces() int {
return whitespaces
}
-func (chars *Chars) TrimTrailingWhitespaces() {
- whitespaces := chars.TrailingWhitespaces()
- chars.slice = chars.slice[0 : len(chars.slice)-whitespaces]
-}
-
func (chars *Chars) TrimSuffix(runes []rune) {
lastIdx := len(chars.slice)
firstIdx := lastIdx - len(runes)