1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-31 23:19:40 +02:00

add comment

This commit is contained in:
Jesse Duffield 2021-04-06 09:50:14 +10:00
parent 390b7ddc5e
commit b6ec667de0

View File

@ -506,6 +506,7 @@ func (gui *Gui) activateContext(c Context) error {
viewName := c.GetViewName()
v, err := gui.g.View(viewName)
// if view no longer exists, pop again
// (note: this should never happen, unless we call this code before our views are initialised)
if err != nil {
return gui.returnFromContext()
}