mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-06 23:46:13 +02:00
add comment
This commit is contained in:
parent
390b7ddc5e
commit
b6ec667de0
@ -506,6 +506,7 @@ func (gui *Gui) activateContext(c Context) error {
|
|||||||
viewName := c.GetViewName()
|
viewName := c.GetViewName()
|
||||||
v, err := gui.g.View(viewName)
|
v, err := gui.g.View(viewName)
|
||||||
// if view no longer exists, pop again
|
// 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 {
|
if err != nil {
|
||||||
return gui.returnFromContext()
|
return gui.returnFromContext()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user