mirror of
https://github.com/junegunn/fzf
synced 2026-08-02 18:41:41 +00:00
Replace utils Min, Max with builtin min, max
This commit is contained in:
committed by
Junegunn Choi
parent
603240122e
commit
14b5e1d88c
+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