mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-27 01:40:34 +08:00
Remove pointer indirection by changing Chunk definition
This commit is contained in:
+1
-1
@@ -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