mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-28 12:32:34 +08:00
Replace utils Min, Max with builtin min, max
This commit is contained in:
committed by
Junegunn Choi
parent
603240122e
commit
14b5e1d88c
@@ -159,7 +159,7 @@ func Run(opts *Options) (int, error) {
|
||||
if item.colors != nil {
|
||||
for _, ansi := range *item.colors {
|
||||
if ansi.color.bg >= 0 {
|
||||
maxColorOffset = util.Max32(maxColorOffset, ansi.offset[1])
|
||||
maxColorOffset = max(maxColorOffset, ansi.offset[1])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ func Run(opts *Options) (int, error) {
|
||||
if total >= maxFit || final {
|
||||
deferred = false
|
||||
heightUnknown = false
|
||||
terminal.startChan <- fitpad{util.Min(total, maxFit), padHeight}
|
||||
terminal.startChan <- fitpad{min(total, maxFit), padHeight}
|
||||
}
|
||||
} else if deferred {
|
||||
deferred = false
|
||||
|
||||
Reference in New Issue
Block a user