mirror of
https://github.com/junegunn/fzf.git
synced 2025-12-09 22:25:41 +08:00
Remove pointer indirection by changing Chunk definition
This commit is contained in:
@@ -65,7 +65,7 @@ func (mg *Merger) Get(idx int) *Result {
|
||||
idx = mg.count - idx - 1
|
||||
}
|
||||
chunk := (*mg.chunks)[idx/chunkSize]
|
||||
return &Result{item: (*chunk)[idx%chunkSize]}
|
||||
return &Result{item: &(*chunk)[idx%chunkSize]}
|
||||
}
|
||||
|
||||
if mg.sorted {
|
||||
|
||||
Reference in New Issue
Block a user