commit - 2b7798554376be53923852de4f57b34f3ebc9cec
commit + fb59748f6b2d9108022ebf444586386f085fd134
blob - 38cc44f44c8d28152deb170944026300861ddbe5
blob + 1497322b4643af8cb574d4b4e0364308dad35b2f
--- tog/tog.c
+++ tog/tog.c
{
const struct got_error *err = NULL;
struct tog_view_list_head views;
- struct tog_view *new_view, *main_view;
+ struct tog_view *new_view;
int fast_refresh = 10;
int done = 0, errcode;
TAILQ_INIT(&views);
TAILQ_INSERT_HEAD(&views, view, entry);
- main_view = view;
view->focussed = 1;
err = view->show(view);
if (err)
TAILQ_REMOVE(&views, view, entry);
err = view_close(view);
- if (err || (view == main_view && new_view == NULL))
+ if (err)
goto done;
view = NULL;