mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-26 05:37:18 +02:00
fix conflict race condition
This commit is contained in:
parent
8822c409e2
commit
40b173118a
@ -223,8 +223,10 @@ func (gui *Gui) refreshMergePanel() error {
|
|||||||
|
|
||||||
mainView := gui.getMainView()
|
mainView := gui.getMainView()
|
||||||
mainView.Wrap = false
|
mainView.Wrap = false
|
||||||
gui.setViewContent(gui.g, mainView, content)
|
if err := gui.newStringTask("main", content); err != nil {
|
||||||
gui.Log.Warn("scrolling to conflict")
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if err := gui.scrollToConflict(gui.g); err != nil {
|
if err := gui.scrollToConflict(gui.g); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user