mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 06:13:47 -05:00
Fix race condition in asynchronous -1 and -0
This commit is contained in:
@@ -12,6 +12,7 @@ type Merger struct {
|
||||
merged []*Item
|
||||
cursors []int
|
||||
sorted bool
|
||||
final bool
|
||||
count int
|
||||
}
|
||||
|
||||
@@ -22,6 +23,7 @@ func NewMerger(lists [][]*Item, sorted bool) *Merger {
|
||||
merged: []*Item{},
|
||||
cursors: make([]int, len(lists)),
|
||||
sorted: sorted,
|
||||
final: false,
|
||||
count: 0}
|
||||
|
||||
for _, list := range mg.lists {
|
||||
|
||||
Reference in New Issue
Block a user