mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-05 13:07:50 +00:00
Remove race conditions from screen update
This commit is contained in:
parent
d2f7acbc69
commit
606d33e77e
@ -297,7 +297,6 @@ func (t *Terminal) printAll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Terminal) refresh() {
|
func (t *Terminal) refresh() {
|
||||||
t.placeCursor()
|
|
||||||
C.Refresh()
|
C.Refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,6 +352,7 @@ func (t *Terminal) Loop() {
|
|||||||
t.initFunc()
|
t.initFunc()
|
||||||
t.printInfo()
|
t.printInfo()
|
||||||
t.printPrompt()
|
t.printPrompt()
|
||||||
|
t.placeCursor()
|
||||||
t.refresh()
|
t.refresh()
|
||||||
t.mutex.Unlock()
|
t.mutex.Unlock()
|
||||||
}
|
}
|
||||||
@ -382,6 +382,7 @@ func (t *Terminal) Loop() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
t.placeCursor()
|
||||||
t.mutex.Unlock()
|
t.mutex.Unlock()
|
||||||
})
|
})
|
||||||
t.refresh()
|
t.refresh()
|
||||||
|
Loading…
Reference in New Issue
Block a user