mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-27 01:40:34 +08:00
Replace utils Min, Max with builtin min, max
This commit is contained in:
committed by
Junegunn Choi
parent
603240122e
commit
14b5e1d88c
+1
-1
@@ -178,7 +178,7 @@ func (r *Reader) feed(src io.Reader) {
|
||||
var err error
|
||||
for {
|
||||
n := 0
|
||||
scope := slab[:util.Min(len(slab), readerBufferSize)]
|
||||
scope := slab[:min(len(slab), readerBufferSize)]
|
||||
for range 100 {
|
||||
n, err = src.Read(scope)
|
||||
if n > 0 || err != nil {
|
||||
|
||||
Reference in New Issue
Block a user