1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

chore: remove UNKNOWN_VIEW_ERROR_MSG

This commit is contained in:
Ryooooooga
2023-02-10 21:23:48 +09:00
parent c713d19383
commit 984eb95cb7
5 changed files with 11 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
}
_, err := setViewFromDimensions(context.GetViewName(), context.GetWindowName())
if err != nil && err.Error() != UNKNOWN_VIEW_ERROR_MSG {
if err != nil && !gocui.IsUnknownView(err) {
return err
}
}
@@ -98,7 +98,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
for _, context := range gui.TransientContexts() {
view, err := gui.g.View(context.GetViewName())
if err != nil && err.Error() != UNKNOWN_VIEW_ERROR_MSG {
if err != nil && !gocui.IsUnknownView(err) {
return err
}
view.Visible = gui.getViewNameForWindow(context.GetWindowName()) == context.GetViewName()