From 9aa5efae1fcae89f06761f2b43118f714891938e Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 9 Jun 2014 19:40:25 +0200 Subject: [PATCH] remove correct term --- src/bin/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/main.c b/src/bin/main.c index a7b72e3c..ac5cdf9b 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -612,7 +612,7 @@ main_close(Evas_Object *win, Evas_Object *term) if (sp->sel) _sel_restore(sp); spp = sp->parent; 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 (eina_list_count(sp->terms) <= 1)