commit - f8405c929e03f5dbe8ed41ede81cba7fad2d4a65
commit + 317b96e783d7edefc895d1f2bd6f8925d0f40cd5
blob - 8df3d9c4d29edb579f6b3e27749041df3ab69cb5
blob + a17d47c03e9cfc4d5c75c891b59110838baced46
--- tog/tog.c
+++ tog/tog.c
PANEL *panel;
int nlines, ncols, begin_y, begin_x;
int lines, cols; /* copies of LINES and COLS */
+ int focussed;
struct tog_view *parent;
struct tog_view *child;
*focus = next;
else
*focus = TAILQ_FIRST(views);
+ view->focussed = 0;
+ (*focus)->focussed = 1;
break;
case KEY_BACKSPACE:
prev = TAILQ_PREV(view, tog_view_list_head, entry);
TAILQ_INIT(&views);
TAILQ_INSERT_HEAD(&views, view, entry);
+ view->focussed = 1;
while (!TAILQ_EMPTY(&views) && !done) {
err = view_show(view);
if (err)
err = view_set_child(new_view->parent, new_view);
if (err)
goto done;
+ new_view->parent->focussed = 0;
}
view = new_view;
+ view->focussed = 1;
}
}
done:
}
view_vborder(view);
- update_panels();
return err;
}
*last_displayed_line = nlines;
view_vborder(view);
- update_panels();
return NULL;
}
*last_displayed_line = lineno;
view_vborder(view);
- update_panels();
return NULL;
}