mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-04 19:28:58 +08:00
Replace utils Min, Max with builtin min, max
This commit is contained in:
1 parent
603240122e
commit
14b5e1d88c
13 files changed
+93
-196
No files matched your search
+1
-1
@@ -187,7 +187,7 @@ func (chars *Chars) TrailingWhitespaces() int {
|
||||
func (chars *Chars) TrimTrailingWhitespaces(maxIndex int) {
|
||||
whitespaces := chars.TrailingWhitespaces()
|
||||
end := len(chars.slice) - whitespaces
|
||||
chars.slice = chars.slice[0:Max(end, maxIndex)]
|
||||
chars.slice = chars.slice[0:max(end, maxIndex)]
|
||||
}
|
||||
|
||||
func (chars *Chars) TrimSuffix(runes []rune) {
|
||||
|
||||
Reference in new issue
Block a user