1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-23 22:50:41 +02:00

remove mutex lock that caused deadlock

This commit is contained in:
Jesse Duffield 2021-04-05 09:12:13 +10:00
parent 464d022a86
commit 32d170621c

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