doc:docs relies on knowing where the child will be removed from in the
list, so we need to leave it in the list when we call ChildClosed.
Because of the popup need to ignore the dying pane when
checking for children.
Signed-off-by: NeilBrown <neil@brown.name>
Current priorities
------------------
-- [ ] fix bugs
+- [X] fix bugs
- [X] emacs: replacable selections aren't working for me. There needs to be an
easier way to cancel them. C-x C-x works as does C-wC-y, but neither are obvious.
Maybe any cursor movement should
----------------
- [X] C-x-# in a pop-up file doesn't close the popup any more.
-- [ ] With *Documents* open M-x version. doc list gets confused.
+- [X] With *Documents* open M-x version. doc list gets confused.
- [X] When I type C-w in search, chars are inserted AFTER cursor. Cursor should move.
- [X] If I scroll-wheel while search, cursor disappears for a time - maybe until status update
- [X] selection is visible more often than I think it should be. Maybe mouse click
ed = pane_root(p);
pane_drop_notifiers(p, NULL);
- list_del_init(&p->siblings);
if (!(p->parent->damaged & DAMAGED_CLOSED))
pane_call(p->parent, "ChildClosed", p);
+ list_del_init(&p->siblings);
restart:
list_for_each_entry(c, &p->children, siblings) {
struct pane *c;
list_for_each_entry(c, &ci->home->children, siblings)
- if (!(c->damaged & DAMAGED_CLOSED) && c->z == 0)
+ if (!(c->damaged & DAMAGED_CLOSED) && c->z == 0 &&
+ c != ci->focus)
/* Still have a child */
return 1;
pane_close(ci->home);