1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +02:00

fix conflict race condition

This commit is contained in:
Jesse Duffield 2020-03-29 11:49:37 +11:00 committed by github-actions[bot]
parent 8822c409e2
commit 40b173118a

View File

@ -223,8 +223,10 @@ func (gui *Gui) refreshMergePanel() error {
mainView := gui.getMainView()
mainView.Wrap = false
gui.setViewContent(gui.g, mainView, content)
gui.Log.Warn("scrolling to conflict")
if err := gui.newStringTask("main", content); err != nil {
return err
}
if err := gui.scrollToConflict(gui.g); err != nil {
return err
}