remove correct term

This commit is contained in:
Boris Faure 2014-06-09 19:40:25 +02:00
parent 896c6500ee
commit 9aa5efae1f
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ main_close(Evas_Object *win, Evas_Object *term)
if (sp->sel) _sel_restore(sp); if (sp->sel) _sel_restore(sp);
spp = sp->parent; spp = sp->parent;
if ((sp->term->focused) && (spp)) termfoc = _term_next_get(sp->term); if ((sp->term->focused) && (spp)) termfoc = _term_next_get(sp->term);
sp->wn->terms = eina_list_remove(sp->wn->terms, sp->term); sp->wn->terms = eina_list_remove(sp->wn->terms, tm);
if (spp) if (spp)
{ {
if (eina_list_count(sp->terms) <= 1) if (eina_list_count(sp->terms) <= 1)