1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-17 21:18:31 +02:00

remove mutex lock that caused deadlock

This commit is contained in:
Jesse Duffield 2021-04-05 09:12:13 +10:00
parent c7e23952c7
commit 1411b70a85

View File

@ -280,9 +280,6 @@ func (g *Gui) SetView(name string, x0, y0, x1, y1 int, overlaps byte) (*View, er
// SetViewBeneath sets a view stacked beneath another view
func (g *Gui) SetViewBeneath(name string, aboveViewName string, height int) (*View, error) {
g.Mutexes.ViewsMutex.Lock()
defer g.Mutexes.ViewsMutex.Unlock()
aboveView, err := g.View(aboveViewName)
if err != nil {
return nil, err